Add Section 18.10 - No spaces inside brackets

See #593
This commit is contained in:
Stefano Pigozzi
2015-11-28 13:28:28 +01:00
parent 2557a5bca6
commit ee3759a7ed
2 changed files with 15 additions and 3 deletions

View File

@@ -1575,6 +1575,18 @@ Other Style Guides
}
```
- [18.10](#18.10) <a name='18.10'></a> Do not add spaces inside brackets.
```javascript
// bad
const foo = [ 1, 2, 3 ];
console.log(foo[ 0 ]);
// good
const foo = [1, 2, 3];
console.log(foo[0]);
```
**[⬆ back to top](#table-of-contents)**
## Commas