One of my colleagues likes to leave hanging commas when defining constant Javascript objects:
var myObj = { prop1: 'smth', prop2: 'smthElse', // <--- Висячая запятая! } He motivates this by the fact that when correcting such an object, the programmer will receive a more relevant output in the differential (1 line instead of two).
I really don't like this style, but for reasons it is also purely aesthetic:
1. JSLint on such swears
2. Non-support in old IE (8-). But under them, we still do not write.
The standard generally allows this.
Attention, the question: do you still know the reasons for which the hanging commas should / should not be used? For example, a positive / negative impact on optimizers or something like that.