Array copyWithin()
Widely available
The copyWithin()
method of arrays and typed arrays shifts or copies items of an array to another index of the array without changing its length.
To learn more, see
Array.prototype.copyWithin(),
TypedArray.prototype.copyWithin() at MDN.
Compatibility
- Chrome 45 Released on 2015-09-01
- Chrome Android 45 Released on 2015-09-01
- Edge 12 Released on 2015-07-29
- Firefox 34 Released on 2014-12-01
- Firefox for Android 34 Released on 2014-12-01
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Specifications
- ECMAScript Language Specification (#sec-array.prototype.copywithin), from TC39 (Ecma International).