Hacker News new | ask | show | jobs
by yisheng 3728 days ago
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.