Skip to content

Commit 5634c4c

Browse files
author
Tomek Wiszniewski
committed
Update existing example
1 parent 4957071 commit 5634c4c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,7 @@
597597
});
598598

599599
// good
600-
[1, 2, 3].map((x) => {
601-
return x * x;
602-
});
600+
[1, 2, 3].map(x => x * x);
603601
```
604602
605603
- [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.

0 commit comments

Comments
 (0)