Typed array iterators
Widely available
Typed arrays are iterable with the for … of
statement and enumerable with the methods entries()
, keys()
, and values()
.
To learn more, see
TypedArray.prototype[Symbol.iterator](),
TypedArray.prototype.entries(),
TypedArray.prototype.keys(),
TypedArray.prototype.values() at MDN.
Compatibility
- Chrome 45 Released on 2015-09-01
- Chrome Android 45 Released on 2015-09-01
- Edge 12 Released on 2015-07-29
- Firefox 37 Released on 2015-03-31
- Firefox for Android 37 Released on 2015-03-31
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Specifications
- ECMAScript Language Specification (#sec-%25typedarray%25.prototype-@@iterator), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-%25typedarray%25.prototype.entries), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-%25typedarray%25.prototype.keys), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-%25typedarray%25.prototype.values), from TC39 (Ecma International).