commit
ffa154d1ca
1 changed files with 1 additions and 1 deletions
|
@ -304,4 +304,4 @@ Objects that have indexed properties and `length` are called *array-like*. Such
|
|||
|
||||
If we look inside the specification -- we'll see that most built-in methods assume that they work with iterables or array-likes instead of "real" arrays, because that's more abstract.
|
||||
|
||||
`Array.from(obj[, mapFn, thisArg])` makes a real `Array` of an iterable or array-like `obj`, and we can then use array methods on it. The optional arguments `mapFn` and `thisArg` allow us to apply a function to each item.
|
||||
`Array.from(obj[, mapFn, thisArg])` makes a real `Array` from an iterable or array-like `obj`, and we can then use array methods on it. The optional arguments `mapFn` and `thisArg` allow us to apply a function to each item.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue