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
+1 -1
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"}