TopLevel
Class Iterable
Iterable
All objects containing the property @@iterator with a function returning an ES6Iterator are said to be an Iterable.
API Versioned:
From version 21.2.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
@@iterator() : ES6Iterator
Returns an iterator to be used for iterating this object.
Method Detail
@@iterator
@@iterator() : ES6Iterator
Returns an iterator to be used for iterating this object. Typically returns a new iterator instance. For iterators returns typically the iterator itself.
API Versioned:
From version 21.2.
Returns:
The iterator to be used for iterating this object.