Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
amitport
4y ago
0 comments
Share
'reversed' a-la python
0 comments
default
newest
oldest
lucacasonato
4y ago
Currently in stage 2 as `Array.prototype.toReversed`:
https://github.com/tc39/proposal-change-array-by-copy
amitport
OP
4y ago
Nice, I didn't know about that, but in any case note that IMO it should be part of the Iterable protocol. Also note that the proposal above creates a copy on reverse AFAIKT.
j
/
k
navigate · click thread line to collapse