18.6: blocks and blank line: add example with array

This commit is contained in:
Christophe Hurpeau
2015-06-23 18:00:55 +02:00
parent 8599621c0f
commit 53ac64adf5

View File

@@ -1415,6 +1415,26 @@
};
return obj;
// bad
const arr = [
function foo() {
},
function bar() {
},
];
return arr;
// good
const arr = [
function foo() {
},
function bar() {
},
];
return arr;
```