Added missing ')'
Added missing ')' at the end of `fat arrow` example
This commit is contained in:
parent
4da6b9adbe
commit
76dc2ef27d
2
es6.md
2
es6.md
|
@ -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"}
|
||||||
|
|
Loading…
Reference in New Issue