MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/qg23w3/negative_array_indexing_using_at_method/hi88cs0/?context=3
r/learnjavascript • u/jd_300 • Oct 26 '21
69 comments sorted by
View all comments
6
array.reverse()[0]
2 u/[deleted] Oct 27 '21 Too slow, unfortunately. Accessing a value in an array using an index should be in O(1) time complexity. 2 u/Dodgy-Boi Oct 27 '21 I am front end. My calculations are happening on client. I don’t care about either users with old devices nor your O nor your o nor * of yours; all I care about is the ( . Y . ) (not necessarily yours)partially /s
2
Too slow, unfortunately. Accessing a value in an array using an index should be in O(1) time complexity.
2 u/Dodgy-Boi Oct 27 '21 I am front end. My calculations are happening on client. I don’t care about either users with old devices nor your O nor your o nor * of yours; all I care about is the ( . Y . ) (not necessarily yours)partially /s
I am front end. My calculations are happening on client. I don’t care about either users with old devices nor your O nor your o nor * of yours; all I care about is the ( . Y . ) (not necessarily yours)
partially /s
6
u/Dodgy-Boi Oct 26 '21
array.reverse()[0]