Skip to content

Instantly share code, notes, and snippets.

@bchhun
Created June 13, 2011 08:42
Show Gist options
  • Save bchhun/1022476 to your computer and use it in GitHub Desktop.
Save bchhun/1022476 to your computer and use it in GitHub Desktop.
Leading commas VS trailing commas
/* ugly */
a_trailing_commas_list = [
"foo",
"bar",
"foo",
"bar"
];
/* godly */
a_leading_commas_list = [
"foo"
, "bar"
, "foo"
, "bar"
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment