How is array[-1] not faster than this?
array[-1]
You can use .at(-1) these days.
That does not exist in javascript
This obiously must be a joke post, look at the numbers.
Lol took me a while to understand 😹
Blaze it!
or array[array.length - 1]
Lol 😂😂 i forgot that array[-1] doesn't work, this answer of yours was what I meant but forgot to write the correct syntax
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How is
array[-1]
not faster than this?You can use .at(-1) these days.
That does not exist in javascript
This obiously must be a joke post, look at the numbers.
Lol took me a while to understand 😹
Blaze it!
or array[array.length - 1]
Lol 😂😂 i forgot that
array[-1]
doesn't work, this answer of yours was what I meant but forgot to write the correct syntax