Glossary Term
Set.prototype[Symbol.iterator]()
2 tags
1 category
The Symbol.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.
Return value: The same return value as Set.prototype.values(): a new iterable iterator object that yields the values of the set.
Syntax example: set[Symbol.iterator]()
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
