Creates an array from an array-like object.
Symbol
ArrayConstructor.from
Creates an array from an iterable object.
@param arrayLike
An array-like object to convert to an array.
@param mapfn
A mapping function to call on every element of the array.
@param thisArg
Value of 'this' used to invoke the mapfn.
Creates an array from an iterable object.
@param iterable
An iterable object to convert to an array.
from<T, U>(iterable: Iterable<T, any, any> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]
Creates an array from an iterable object.
@param iterable
An iterable object to convert to an array.
@param mapfn
A mapping function to call on every element of the array.
@param thisArg
Value of 'this' used to invoke the mapfn.