All objects containing the property @@iterator with a function returning an ES6Iterator are said to be an Iterable.
API Version: note: Available from version 21.2.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
| Method | Description |
|---|---|
| iterator() | Returns an iterator to be used for iterating this object. |
Methods inherited from class 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
Method Details
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.
Returns:
- The iterator to be used for iterating this object.
API Version: note: Available from version 21.2.
-
<!-- prettier-ignore-end -->