<?xml version="1.0" encoding="UTF-8"?>
<feature id="array-by-copy"><name>Array by copy</name><description>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.</description><group>arrays</group><group_name>Arrays</group_name><baseline><status>widely</status><low_date>2023-07-04</low_date><high_date>2026-01-04</high_date></baseline><support><browser name="chrome" version="110" supported="true"></browser><browser name="firefox" version="115" supported="true"></browser><browser name="safari" version="16" supported="true"></browser><browser name="edge" version="110" supported="true"></browser><browser name="chrome_android" version="110" supported="true"></browser><browser name="firefox_android" version="115" supported="true"></browser><browser name="safari_ios" version="16" supported="true"></browser></support><specifications><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.toreversed</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.tosorted</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.tospliced</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.with</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.toreversed</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.tosorted</spec><spec>https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.with</spec></specifications><caniuse></caniuse><mdn_url>https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/with</mdn_url><compat_features><key>javascript.builtins.Array.toReversed</key><key>javascript.builtins.Array.toSorted</key><key>javascript.builtins.Array.toSpliced</key><key>javascript.builtins.Array.with</key><key>javascript.builtins.TypedArray.toReversed</key><key>javascript.builtins.TypedArray.toSorted</key><key>javascript.builtins.TypedArray.with</key></compat_features><canonical_url>https://nowyoucanuse.com/features--array-by-copy.html</canonical_url></feature>