Oops, theres a typo
Should be Node.js 16.6.0 (the feature is in V8 9.2)https://github.com/nodejs/node/releases/tag/v16.6.0 …
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
// new way to get "c" let last4 = typeof http://letters.at === 'function' ? http://letters.at (-1) : letters[letters.length - 1];
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It's okay I suppose, though I still prefer the verbosity of 'array.length -1'. 'last()' would have been more readable friendly, especially for newcommers.
-
+1 for `last()`
End of conversation
New conversation -
-
-
Safari 43...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
That's great, I guess you can use it whenever you want, but Array.prototype.reverse looks much more appropriate.
-
Array reverse mutates the original array, and, I speaking of performance, don’t think it’s Great to always reverse it when you just want to select the last element

- Show replies
New conversation -
-
-
slowly js is becoming python
-
Yes I agree this looks a lot like python. Go
@gvanrossum
End of conversation
New conversation -
-
-
Interesting fact: at() was previously called item() but renamed due to a collision with YUI, affecting http://flicker.com and othershttps://github.com/tc39/proposal-relative-indexing-method/issues/34 …
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Software Shepherd 


husband,
Jesus lover. Opinions are my own.
◦ Chrome 92
◦ Firefox 90
◦ Node.js 16.5.0