ES Arrow functions are unhelpfully distinctive. No `arguments`. Implicit return unless you use `{}`. No `()` in param list unless zero-param
Params list always requires () except for single arg case, which is linked with the arrow expressions: let a2 = a.map(i => i + 1)
-
-
TLDR the shortest syntax is designed for functions that take functions and do transformations like map, filter, etc
-
I know this but I don't like it.
-
Tweet unavailable
-
is Stanley too young for Ren and Stimpy references? (Btw that horse is literally me on twitter isn't it)
-
could be :P
-
fwiw I just opened my editor and happened on this. Kind of nice, I think.pic.twitter.com/9PqCNVWRMs
- 4 more replies
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.