Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep came here to say this.

Arrow functions are graceful and preferred precisely because of this. Passing a naked function reference like that to map is frowned upon where I work, and your PR would not get approval because it is risky for the reasons pointed out in this article.

TL;DR - use modern JavaScript features to make your code more readable and more reliable.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: