Files
discord-decomp/_bundle/Module1414.js
T
2026-11-01 12:12:55 +02:00

20 lines
381 B
JavaScript

// Metro module 1414 (f1415).
export function areSetsEqual(a0, a1) {
if (a0 === a1) {
return true;
}
if (a0.size !== a1.size) {
return false;
}
for (const item of a0) {
if (a1.has(item)) {
continue;
}
return false;
}
return true;
}
export function toSetInplace(a0) {
return a0 == null ? new Set() : a0 instanceof Set ? a0 : new Set(a0);
}