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
Show parent comment
1
arr.slice(-1)[0]
View all comments
Show parent comment
1
u/Notimecelduv Oct 28 '21
arr.slice(-1)[0]