Array fill()
Widely available since 2018-03-01 (baseline high)
The fill()
method of arrays and typed arrays sets all or some items of an array to a given a value.
Compatibility
- Chrome 45 Released on 2015-09-01
- Chrome Android 45 Released on 2015-09-01
- Edge 12 Released on 2015-07-29
- Firefox 31 Released on 2014-07-22
- Firefox for Android 31 Released on 2014-07-22
- Safari 8 Released on 2014-10-16
- Safari on iOS 8 Released on 2014-09-17