This commit is contained in:
Tomek Wiszniewski
2015-12-02 11:58:26 +01:00
parent b54ce438c8
commit 766f3585db

View File

@@ -763,13 +763,13 @@ Other Style Guides
));
// bad
[1, 2, 3].reduce(x => {
[1, 2, 3].map(x => {
const y = x + 1;
return x * y;
});
// good
[1, 2, 3].reduce((x) => {
[1, 2, 3].map((x) => {
const y = x + 1;
return x * y;
});