Merge pull request #1272 from SteamTank/patch-1

Added missing ')'
This commit is contained in:
Rico Sta. Cruz 2019-11-17 16:37:58 +11:00 committed by GitHub
commit 08ee61d2a4
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 })
numbers.map(n => ({
result: n * 2
})
}))
// Implicitly returning objects requires parentheses around the object
```
{: data-line="1,4,5,6"}