JS iterators (i.e. the for-of feature) (ES6)

JavaScript

Iterates over iterable objects (including arrays, array-like objects, iterators and generators), invoking a custom iteration hook with statements to be executed for the value of each distinct property.

Demo

Documentation

Specification

Editor's draft

Implementation Status

Enabled by default in desktop Chrome 38 (launch bug)

Available in Chrome for Android release 38.

Consensus & Standardization

  • Shipped
  • Public support
  • Shipped in release 25
  • Shipped in release 25
  • In development
  • Strongly positive

Owner

Last updated on 2014-10-10