Fix some bugs

This commit is contained in:
Jon Staab
2025-11-25 14:54:10 -08:00
parent 92af4dcfde
commit 52785afb10
2 changed files with 36 additions and 44 deletions
-5
View File
@@ -64,11 +64,6 @@ export const not = (x: any, ...args: unknown[]) => !x
export const equals = (a: any, b: any) => {
if (a === b) return true
if (a instanceof Set && b instanceof Set) {
a = Array.from(a)
b = Array.from(b)
}
if (a instanceof Set) {
if (!(b instanceof Set) || a.size !== b.size) {
return false