Update article.md

Typo - miss closing parenthesis in add.map() example
This commit is contained in:
Mark 2017-09-17 19:47:26 +03:00 committed by GitHub
parent ba0e4df492
commit 42d9eb1563

View file

@ -316,7 +316,7 @@ The syntax is:
```js
let result = arr.map(function(item, index, array) {
// returns the new value instead of item
}
})
```
It calls the function for each element of the array and returns the array of results.