Update article.md

Array.from: 'copies there all items' -> 'copies all items to it'
This commit is contained in:
Peter Roche 2019-11-03 22:19:12 -07:00 committed by GitHub
parent ec21af8aef
commit 7d92be954e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ let arr = Array.from(arrayLike); // (*)
alert(arr.pop()); // World (method works)
```
`Array.from` at the line `(*)` takes the object, examines it for being an iterable or array-like, then makes a new array and copies there all items.
`Array.from` at the line `(*)` takes the object, examines it for being an iterable or array-like, then makes a new array and copies all items to it.
The same happens for an iterable: