Hacker News new | ask | show | jobs
by WalterSear 3263 days ago
What I want are leading commas. Much tidier and one small thing you wouldn't have to edit/think about when adding and removing list items.
2 comments

Better yet: automatic comma insertion! (I'm only half joking.)
Unless you need to add something to the beginning.
I prefer comma first notation.

    const hello = {
    , 'one'
    , 'two'
    , 'three
    }
would be easier to visually parse than:

    const hello = {
      'one',
      'two', 
      'three',
    }
Since the commas actually work as a guide.