Skip to content

Commit 25a65a6

Browse files
authored
Merge pull request javascript-tutorial#187 from TMatrix/patch-1
miss closing parenthesis in arr.map() example, update article.md
2 parents ba0e4df + 42d9eb1 commit 25a65a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ The syntax is:
316316
```js
317317
let result = arr.map(function(item, index, array) {
318318
// returns the new value instead of item
319-
}
319+
})
320320
```
321321

322322
It calls the function for each element of the array and returns the array of results.

0 commit comments

Comments
 (0)