forked from web-platform-dx/web-features
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharray-by-copy.yml
14 lines (14 loc) · 999 Bytes
/
array-by-copy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
name: Array by copy
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.
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
snapshot: ecmascript-2023
group:
- arrays
- typed-arrays