Open
Description
For sets, this does an object identity check for membership, I suppose we could do N^2 deepEqual()
checks on the set members to determine if they match... Likewise for maps...
if (a instanceof Set && b instanceof Set) {
for (const el of a) {
if (!b.has(el)) return false
}
for (const el of b) {
if (!a.has(el)) return false
}
return true
}
Metadata
Metadata
Assignees
Labels
No labels