mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
Remove Set equal comparison
This commit is contained in:
@@ -175,14 +175,6 @@ export default class Utility {
|
||||
if (a instanceof Array && b instanceof Array) {
|
||||
return a.length === b.length && a.every((value, i) => Utility.equals(value, b[i]))
|
||||
}
|
||||
if (a instanceof Set && b instanceof Set) {
|
||||
if (a.size !== b.size) {
|
||||
return false
|
||||
}
|
||||
a = [...a]
|
||||
b = [...b]
|
||||
return a.every(first => /** @type {Array} */(b).some(second => Utility.equals(first, second)))
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user