MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/qg23w3/negative_array_indexing_using_at_method/hi67vha/?context=3
r/learnjavascript • u/jd_300 • Oct 26 '21
69 comments sorted by
View all comments
1
This is nice, but I kind of just want a last method. That would solve 99% of the use cases I might use at for.
last
at
While I’m at it, head and tail would be nice too (though brackets/slice work well enough for those).
head
tail
4 u/_inz_ Oct 26 '21 Miss this so much coming from Swift
4
Miss this so much coming from Swift
1
u/delventhalz Oct 26 '21
This is nice, but I kind of just want a
lastmethod. That would solve 99% of the use cases I might useatfor.While I’m at it,
headandtailwould be nice too (though brackets/slice work well enough for those).