Skip to content

Trailing commas in Object/Array literal #75

@trantorLiu

Description

@trantorLiu

Are trailing commas good style in javascript?
I always use them for convenience.

var tom = {
  name: 'Tom',
  age: 20,
  friends: [
    'Jerry',
  ],
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions