Obsolete since Gecko 34 (Firefox 34 / Thunderbird 34 / SeaMonkey 2.31)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The move() method used to copy the sequence of array elements within the array to the position starting at target. However, this non-standard method has been replaced with the standard TypedArray.prototype.copyWithin() method. TypedArray is one of the typed array types here.


typedarray.move(start, end, target)


Source start index position where to start copying elements from.
Source end index position where to end copying elements from.
Target start index position where to copy the elements to.

Return value

The modified type array.


Using the move method

var buffer = new ArrayBuffer(8);
var uint8 = new Uint8Array(buffer);
console.log(uint8); // Uint8Array [ 1, 2, 3, 0, 0, 0, 0, 0 ]
console.log(uint8); // Uint8Array [ 1, 2, 3, 1, 2, 3, 0, 0 ]


Not part of any standard. Superseded by TypedArray.prototype.copyWithin().

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No No16 — 341 No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No No38 — 341 No No No

1. Was available in Aurora and Nightly channels only.

See also

Document Tags and Contributors

Contributors to this page: fscholz, eduardoboucas
Last updated by: fscholz,