Contribute via GitHub Feedback

Iterable : Object

An iterable object is any object that has a Symbol.iterator property whose value is a function that returns an Iterator.

You can loop over all values in an iterable object by using a for (const value of iterable) { } loop.

You may create your own iterable object by assigning the Symbol.iterator property to a generator function (function* () {}) or an object with a next() method.

See Iterator for more details.

Instance Indexers

Returns a function that produces an Iterator for this object.