🏠 New in High Baseline Support: Array fill()
March 20, 2019
caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.fill’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.fill’])
The fill()
method of arrays and typed arrays sets all or some items of an array to a given a value.