Merge pull request #648 from ju-hyun-park/master

Update article.md
This commit is contained in:
Ilya Kantor 2018-12-06 20:11:58 +03:00 committed by GitHub
commit 983042fed3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,7 +329,7 @@ It calls the function for each element of the array and returns the array of res
For instance, here we transform each element into its length:
```js run
let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length)
let lengths = ["Bilbo", "Gandalf", "Nazgul"].map(item => item.length);
alert(lengths); // 5,7,6
```