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

If you omit the {} you can then also omit the return.

https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...



True but irrelevant, the GP is talking about the top level function, not the fat arrow one.


Guess I was also in a hurry!




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

Search: