The InternSet class extends the native JavaScript Set class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.
Optional
Iterates over values in the set.
Appends a new element with a specified value to the end of the Set.
Removes a specified value from the Set.
Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
Returns an iterable of [v,v] pairs for every value v in the set.
v
Executes a provided function once per each value in the Set object, in insertion order.
a boolean indicating whether an element with the specified value exists in the Set or not.
Despite its name, returns an iterable of the values in the set.
Returns an iterable of values in the set.
Readonly
the number of (unique) elements in Set.
Static
The InternSet class extends the native JavaScript Set class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.