Merge pull request #187 from TMatrix/patch-1

miss closing parenthesis in arr.map() example, update article.md
This commit is contained in:
Ilya Kantor 2017-09-17 19:33:10 +02:00 committed by GitHub
commit 25a65a656e

View file

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