- array_from<T>(arrayLike): T[]
Returns T[]
- array_from<T, U>(arrayLike, mapfn, thisArg?): U[]
Parameters
- arrayLike: ArrayLike<T>
- mapfn: ((v: T, k: number) => U)
Optional
thisArg: any
Returns U[]
- array_from<T>(iterable): T[]
Parameters
- iterable: Iterable<T, any, any> | ArrayLike<T>
Returns T[]
- array_from<T, U>(iterable, mapfn, thisArg?): U[]
Parameters
- iterable: Iterable<T, any, any> | ArrayLike<T>
- mapfn: ((v: T, k: number) => U)
Optional
thisArg: any
Returns U[]
Creates an array from an array-like object.