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