mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
Update existing example
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user