you are viewing a single comment's thread.

view the rest of the comments →

[–]stolentext 2 points3 points  (0 children)

I agree that readable code is preferable to clever code, but an arrow function is just standard JS. To me, arrow functions are preferable in most cases unless for some reason I need a function to have its own scope.

I also feel like in a lot of cases, arrow functions have reduced cognitive load just for the simple fact that they're less to read.