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.

Note

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
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:

Available from version 21.2.

Note


DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!