Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 66d3ffd

Browse files
authored
add note about pausing this proposal
1 parent 1449f7f commit 66d3ffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[(Currently Stage 1)](https://github.com/tc39/proposals/blob/master/stage-1-proposals.md)
44

5+
This proposal's champion (@keithamus) does not plan to advance to Stage 2 for now. Other proposals ([Array.prototype.item](https://github.com/tabatkins/proposal-item-method) and [Array Slice Notation](https://github.com/tc39/proposal-slice-notation)) also sufficiently solve this problem, and are advancing quicker through the standards track. Should one of these proposals advance to Stage 3, this proposal will be dropped.
6+
57
## Rationale
68

79
Currently the only way to get the last element of an Array is to subtract one from the `.length` property and use this value in the property lookup. Typically this looks like `someArray[someArray.length - 1]`.

0 commit comments

Comments
 (0)