the number of (unique) elements in 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.
a new Set containing all the elements in this Set which are not also in the argument.
Returns an iterable of [v,v] pairs for every value v
in the set.
Executes a provided function once per each value in the Set object, in insertion order.
Optional
thisArg: anya boolean indicating whether an element with the specified value exists in the Set or not.
a new Set containing all the elements which are both in this Set and in the argument.
Despite its name, returns an iterable of the values in the set.
a new Set containing all the elements which are in either this Set or in the argument, but not in both.
a new Set containing all the elements in this Set and also all the elements in the argument.
Returns an iterable of values in the set.
A
Set
-compatible class that allows using a custom key mapper function for both reading and writing.