Widely Available
Arrays
id: array-by-copy
Array by copy
The
toReversed(), toSorted(), toSpliced(), and with() methods of arrays and typed arrays return changed copies of arrays. They stand in contrast to methods such as sort() or reverse() that change arrays in place.
Baseline Status:
Achieved Widely Available on Jan 4, 2026 (Cross-browser Newly Available since Jul 4, 2023).
Desktop Browser Engine Support
Google Chrome
110
Supported
Mozilla Firefox
115
Supported
Apple Safari
16
Supported
Microsoft Edge
110
Supported
Mobile Browser Engine Support
Chrome Android
110
Firefox Android
115
Safari iOS
16
Specifications and References
Specification ↗
Specification ↗
Specification ↗
Specification ↗
Specification ↗
Specification ↗
Specification ↗
Feature XML ↗
MDN Browser Compat Data Keys:
javascript.builtins.Array.toReversed ↗
javascript.builtins.Array.toSorted ↗
javascript.builtins.Array.toSpliced ↗
javascript.builtins.Array.with ↗
javascript.builtins.TypedArray.toReversed ↗
javascript.builtins.TypedArray.toSorted ↗
javascript.builtins.TypedArray.with ↗