The [@@iterator]()
method of Set
instances implements the iterable protocol and allows Set
objects to be consumed by most syntaxes expecting iterables, such as the spread syntax and for...of
loops. It returns a set iterator object that yields the values of the set in insertion order.
The initial value of this property is the same function object as the initial value of the Set.prototype.values
property.