From 5634c4c88e5293e83cccf5dd9055666e9400c1de Mon Sep 17 00:00:00 2001 From: Tomek Wiszniewski Date: Wed, 12 Aug 2015 11:04:50 +0200 Subject: [PATCH] Update existing example --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 48bb3b2f..9b362d97 100644 --- a/README.md +++ b/README.md @@ -597,9 +597,7 @@ }); // good - [1, 2, 3].map((x) => { - return x * x; - }); + [1, 2, 3].map(x => x * x); ``` - [8.2](#8.2) 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.