1
0
Fork 0

feat(shared): implemented log view

This commit is contained in:
joostdecock 2023-06-10 20:33:34 +02:00
parent 0a8cedd23f
commit 9ffb4f5261
21 changed files with 316 additions and 279 deletions

View file

@ -255,8 +255,9 @@ export const nsMerge = (...args) => {
const ns = new Set()
for (const arg of args) {
if (typeof arg === 'string') ns.add(arg)
else if (Array.isArray(arg)) ns.add(nsMerge(...arg))
else console.log('Unexpected namespect type:', { arg })
else if (Array.isArray(arg)) {
for (const el of nsMerge(...arg)) ns.add(el)
} else console.log('Unexpected namespect type:', { arg })
}
return [...ns]