MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/qg23w3/negative_array_indexing_using_at_method/hidpik6/?context=3
r/learnjavascript • u/jd_300 • Oct 26 '21
69 comments sorted by
View all comments
1
array.slice(-1)
1 u/Notimecelduv Oct 28 '21 arr.slice(-1)[0]
arr.slice(-1)[0]
1
u/warpedspockclone Oct 27 '21
array.slice(-1)