Update existing example

This commit is contained in:
Tomek Wiszniewski
2015-08-12 11:04:50 +02:00
parent 4957071107
commit 5634c4c88e

View File

@@ -597,9 +597,7 @@
});
// good
[1, 2, 3].map((x) => {
return x * x;
});
[1, 2, 3].map(x => x * x);
```
- [8.2](#8.2) <a name='8.2'></a> If the function body consists of a single expression, feel free to omit the braces and use the implicit return. Otherwise use a `return` statement.