đ New in High Baseline Support: Array by copy
January 4, 2026
caniuse ¡ mdn ¡ [spec]([âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.toreversedâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.tosortedâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.tosplicedâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.withâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.toreversedâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.tosortedâ, âhttps://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.withâ])
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.