3 ms·
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
by yisheng 10y 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.