lol I love the Rubes. Excited to see some sort of [1...10] land in js some day.
-
-
yeah, rust has dedicated range syntax. JS needs indexing reform first tho.
1 reply 0 retweets 1 like -
does TC-thirtynizzle take kindly to very small proposals like .first() .second() .third(), aka sugary goodness?
1 reply 0 retweets 1 like -
Kindly enough (cc
@ljharb) but I am skeptical of these. .fortySecond() ?3 replies 0 retweets 2 likes -
Replying to @wycats @TheLarkInn and
why not just const {42: fourtySecond} = array ?
1 reply 0 retweets 0 likes -
Replying to @kentcdodds @wycats and
I don't want to add stuff like this unnecessarily
1 reply 0 retweets 0 likes -
-
Replying to @wycats @BrendanEich and
oh, I know, sorry that was more directed toward
@TheLarkInn, but I used yours as an example1 reply 0 retweets 0 likes -
Replying to @kentcdodds @BrendanEich and
last is just SOOO dominant. arr[arr.length - 1] <= look familiar?
2 replies 0 retweets 2 likes -
Replying to @wycats @BrendanEich and
not certain how I feel about adding a .last() though... hmmm...
1 reply 0 retweets 0 likes
it's far far more common than .at(-2) and major boost in readability for common case.
-
-
Replying to @wycats @kentcdodds and
yes yes yes. [1,4,6,9].last();
#JavaScript#renaissance1 reply 1 retweet 2 likes -
Replying to @TheLarkInn @wycats and
yeah love a lot of these constructs in immutable so nice
0 replies 0 retweets 1 like
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.