feat(ui): add type filter toggles
This commit is contained in:
19
node_modules/classcat/index.js
generated
vendored
Normal file
19
node_modules/classcat/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export default function cc(names) {
|
||||
if (typeof names === "string" || typeof names === "number") return "" + names
|
||||
|
||||
let out = ""
|
||||
|
||||
if (Array.isArray(names)) {
|
||||
for (let i = 0, tmp; i < names.length; i++) {
|
||||
if ((tmp = cc(names[i])) !== "") {
|
||||
out += (out && " ") + tmp
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let k in names) {
|
||||
if (names[k]) out += (out && " ") + k
|
||||
}
|
||||
}
|
||||
|
||||
return out
|
||||
}
|
||||
Reference in New Issue
Block a user