Interface ArrayConstructor
Callable
- __call(arrayLength?: undefined | number): any[]
- __call<T>(arrayLength: number): T[]
- __call<T>(...items: T[]): T[]
-
Parameters
-
Optional arrayLength: undefined | number
Returns any[]
-
Type parameters
Parameters
Returns T[]
-
Type parameters
Parameters
Returns T[]
Constructors
constructor
- new ArrayConstructor(arrayLength?: undefined | number): any[]
- new ArrayConstructor<T>(arrayLength: number): T[]
- new ArrayConstructor<T>(...items: T[]): T[]
-
Parameters
-
Optional arrayLength: undefined | number
Returns any[]
-
Type parameters
Parameters
Returns T[]
-
Type parameters
Parameters
Returns T[]
Properties
[Symbol.species]
prototype
prototype: any[]
Methods
from
- from<T>(arrayLike: ArrayLike<T>): T[]
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]
- 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
-
-
mapfn: (v: T, k: number) => U
-
Optional thisArg: any
Returns U[]
-
Type parameters
Parameters
Returns T[]
-
Type parameters
Parameters
-
-
mapfn: (v: T, k: number) => U
-
Optional thisArg: any
Returns U[]
isArray
- isArray(arg: any): arg is any[]
-
Parameters
Returns arg is any[]
of
- of<T>(...items: T[]): T[]
-
Type parameters
Parameters
Returns T[]
Creates an array from an array-like object.