@massimo-cassandro/minimo 1.5.11 → 1.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/charts/TODO.md +3 -0
- package/package.json +1 -1
- package/src/utilities/classnames.js +8 -1
package/charts/TODO.md
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export function classnames(...args) {
|
|
2
|
-
return args.
|
|
2
|
+
return args.flat().filter(x => {
|
|
3
|
+
if (x && typeof x !== 'string') {
|
|
4
|
+
// eslint-disable-next-line no-console
|
|
5
|
+
console.error('[classnames] valore non stringa ignorato in ', ...args);
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
return Boolean(x);
|
|
9
|
+
}).join(' ');
|
|
3
10
|
}
|