Class Iterable
All objects containing the property @@iterator with a function returning an ES6Iterator are said to be an Iterable.
API Version:
Available from version 21.2.
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| iterator() | Returns an iterator to be used for iterating this object. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- 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.
Returns:
- The iterator to be used for iterating this object.
API Version:
Available from version 21.2.