Typed array iterators
Widely available since 2019-03-20 (baseline high)
Typed arrays are iterable with the for…of
statement and enumerable with the methods entries()
, keys()
, and values()
.
Compatibility
- Chrome 38 Released on 2014-10-07
- Chrome Android 38 Released on 2014-10-08
- Edge 12 Released on 2015-07-29
- Firefox 36 Released on 2015-02-24
- Firefox for Android 36 Released on 2015-02-27
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Specifications
- https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype-@@iterator
- https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.entries
- https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.keys
- https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.values