Why you should enforce Dangling Commas for Multiline Statements
Nik Graf

Are we absolutely certain that different engines don't give different lengths of array? It is not wholly clear if this is specific to a particular version of javascript or what browser support is being targeted. I have had problems in the past with this and not just IE8 (which I believe is not a bug, ECMA Script 4 is wooly on how to treat trailing commas and IE implementation is perfectly valid) where some browsers create an undefined array element at the end.

If no differences then woo-hoo, I used to use the comma at the beginning on subsequent lines for mostly the same reason but this is cleaner.

Show your support

Clapping shows how much you appreciated Nigel Wade’s story.