Interface ArrayConstructor
Callable
- ArrayConstructor(arrayLength?: number): any[]
- ArrayConstructor<T>(arrayLength: number): T[]
- ArrayConstructor<T>(...items: T[]): T[]
Parameters
Optional arrayLength: number
Returns any[]
Type Parameters
Parameters
Returns T[]
Type Parameters
Parameters
Returns T[]
Constructors
constructor
- new ArrayConstructor(arrayLength?: number): any[]
- new ArrayConstructor<T>(arrayLength: number): T[]
- new ArrayConstructor<T>(...items: T[]): T[]
Parameters
Optional arrayLength: number
Returns any[]
Type Parameters
Parameters
Returns T[]
Type Parameters
Parameters
Returns T[]
Properties
Readonly [species]
Readonly 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.