Set
API overview
- a Set can be created from an array
size
is the number of valuesadd()
appends the given valueclear()
removes all elementsdelete()
removes the given valueentries()
returns an iterator for all valuesforEach()
calls a callback for each valuehas()
returns true if the given value is in the set
returns an iterator that contains all values
keys()
values()
[Symbol.iterator]()