-
-
I agree, and .at(-1) would be great. I, however, am not JS :-)
-
would you object to .last()?
-
nope but I'd prefer a more generic .at(n) that can take a negative index
-
I think both are good. .at(-1) is an incantation for last,
#SayWhatYouMean -
sure but then we need .secondToLast()
-
I don't think adding .last() argues for more. I'm a fan of .at()
-
do we not like things that can do the same things? I'd rather see that then someone impl. own sugar.
-
it's way to strong (and impossible) to demand One True Way to Do It.
- 1 more reply
New conversation -
-
-
Sometimes you need to index.
#duffsdevice -
I'm sure that's true. What are your use cases?
-
re-read my tweet.
-
No idea what a duff is besides homer's favorite beer :-)
- End of conversation
New conversation -
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.
