Update article.md
Array.from: 'copies there all items' -> 'copies all items to it'
This commit is contained in:
parent
ec21af8aef
commit
7d92be954e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue