coderef

Array by copyBaseline · Widely available

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.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 4, 2023. Widely available since Jan 4, 2026.

Browser support

DesktopChrome
1–109Not supported
110+Supportedsince Feb 7, 2023
Current: 155
Edge
12–109Not supported
110+Supportedsince Feb 9, 2023
Current: 154
Firefox
1–114Not supported
115+Supportedsince Jul 4, 2023
Current: 157
Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27
MobileChrome Android
18–109Not supported
110+Supportedsince Feb 7, 2023
Current: 155
Firefox Android
4–114Not supported
115+Supportedsince Jul 4, 2023
Current: 157
Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: toReversed.

Feature detection

JS · check before using
if ("toReversed" in Array || ("prototype" in Array && "toReversed" in Array.prototype)) {
  // Array.toReversed is available
}

Sub-features

Support for each part of the feature (7). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Array.toReversed1101101151611011516
Array.toSorted1101101151611011516
Array.toSpliced1101101151611011516
Array.with1101101151611011516
TypedArray.toReversed1101101151611011516
TypedArray.toSorted1101101151611011516
TypedArray.with1101101151611011516