felixge / felixge/node-style-guide

Object / Array creation - trailing comma on last key

Open
#93 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
893
PR merge metrics
No merged PRs in 30d

Description

There is an additional comma after the last key/value pair on the 'Right' example.

```var a = ['hello', 'world'];
var b = {
good: 'code',
'is generally': 'pretty',
};
```

[Check it out](https://github.com/felixge/node-style-guide#object--array-creation).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.