Baseline Widely Iterators

Iterators and the for...of loop

The for...of loop operates on a sequence of values sourced from an iterable object, such as arrays, array-like objects, DOM collections, iterators, generators, and user-defined iterables. All built-in iterators inherit from the Iterator class.

Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Firefox 13
2012-06-05
Core-3 Stability
854d (2.3y)
Last: Chrome (2014-10-07)
BCD Keys Mapped
4
Group: Iterators

Browser Support Timeline

Firefox v13 (2012-06-05) Firefox for Android v14 (2012-06-26) Safari on iOS v7 (2013-09-18) Safari v7 (2013-10-22) Chrome v38 (2014-10-07) Chrome Android v38 (2014-10-08) Edge v12 (2015-07-29)
Green dot marks the first browser release (2012-06-05); blue dots show subsequent browser launches (+1149d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Firefox desktop 13 2012-06-05
Firefox for Android mobile 14 2012-06-26
Safari on iOS mobile 7 2013-09-18
Safari desktop 7 2013-10-22
Chrome desktop 38 2014-10-07
Chrome Android mobile 38 2014-10-08
Edge desktop 12 2015-07-29

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
javascript.builtins.Iterator JS 1,400d (3.8y)
javascript.builtins.Iterator.@@iterator JS 714d (2.0y)
javascript.statements.for_of JS 854d (2.3y)
javascript.statements.for_of.closing_iterators JS 1,275d (3.5y)