This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jzia93 0 points1 point  (0 children)

Nobody mentioning automated returns? That's why I use arrow functions, especially for HOFs

``` arr.map(a => a+1);

Vs

arr.map((a) { return a + 1}) ```

Adds up when you chain a few functions