Added missing ')'

Added missing ')' at the end of `fat arrow` example
This commit is contained in:
SteamTank 2019-11-14 10:12:01 +01:00 committed by GitHub
parent 4da6b9adbe
commit 76dc2ef27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
es6.md
View File

@ -415,7 +415,7 @@ numbers.map(n => n * 2)
// Same as: numbers.map(function (n) { return n * 2 }) // Same as: numbers.map(function (n) { return n * 2 })
numbers.map(n => ({ numbers.map(n => ({
result: n * 2 result: n * 2
}) }))
// Implicitly returning objects requires parentheses around the object // Implicitly returning objects requires parentheses around the object
``` ```
{: data-line="1,4,5,6"} {: data-line="1,4,5,6"}