A Set of UUIDs that matches case- and whitespace-insensitively. Every ID is normalized on insert and on lookup, so Has('A1B2…') finds an ID added as 'a1b2…'. Iterates normalized IDs.
Set
Has('A1B2…')
'a1b2…'
const selected = new UUIDSet(selectedIds);const picked = rows.filter(r => selected.Has(r.ID)); Copy
const selected = new UUIDSet(selectedIds);const picked = rows.filter(r => selected.Has(r.ID));
Optional
Number of distinct IDs (case variants of one ID count once).
Adds an ID. Returns this set, for chaining.
Removes an ID. Returns true when it was present.
True when the ID is in the set, ignoring case and surrounding whitespace.
A
Setof UUIDs that matches case- and whitespace-insensitively. Every ID is normalized on insert and on lookup, soHas('A1B2…')finds an ID added as'a1b2…'. Iterates normalized IDs.Example