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

Huh? What's this do in JavaScript? (No sarcasm; I'm mostly in this ecosystem, but I have no idea what this is in reference to.)


They are called arrow functions (-> looks a bit like an arrow).


It's confusing to write it like -> because the actual operator is =>, which is close but not the same.


isn't it =>




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

Search: