🏠 New in Low Baseline Support: Array iterators
May 9, 2018
caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype-@@iterator’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.entries’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.keys’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.values’])
Arrays are iterable with the for…of
statement and enumerable with the methods entries()
, keys()
, and values()
.