🏠 New in High Baseline Support: Typed array iterators

March 20, 2019

caniuse · mdn · [spec]([‘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’])

Typed arrays are iterable with the for…of statement and enumerable with the methods entries(), keys(), and values().

Source features