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

The only time you should avoid trailing commas is if your javascript needs to run on older browsers.

If you use babel, you can write your source with trailing commas, then let the build step remove them for older browsers.



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

Search: