/** * Shallow equality check for two sets of numbers. * Ported from yagami `hotels-pwa/src/utils/utility.ts` so the List package * stays self-contained. */ export const areSetsEqual = (a: Set, b: Set) => { if (a.size !== b.size) return false; for (const item of Array.from(a)) { if (!b.has(item)) return false; } return true; };