Merge pull request #187 from TMatrix/patch-1
miss closing parenthesis in arr.map() example, update article.md
This commit is contained in:
commit
25a65a656e
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue