Interface ArrayConstructor
interface ArrayConstructor {
new ArrayConstructor(arrayLength?: number): any[];
new ArrayConstructor<T>(arrayLength: number): T[];
new ArrayConstructor<T>(...items: T[]): T[];
"[species]": ArrayConstructor;
prototype: any[];
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[];
isArray(arg: any): arg is any[];
of<T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
}
new ArrayConstructor(arrayLength?: number): any[];
new ArrayConstructor<T>(arrayLength: number): T[];
new ArrayConstructor<T>(...items: T[]): T[];
"[species]": ArrayConstructor;
prototype: any[];
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[];
isArray(arg: any): arg is any[];
of<T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
}
Methods
from
- from<T>(arrayLike: ArrayLike<T>): T[]
Type Parameters
Returns T[]
- from<T, U>(
arrayLike: ArrayLike<T>,
mapfn: (v: T, k: number) => U,
thisArg?: any,
): U[] Creates an array from an iterable object.
Type Parameters
Parameters
Returns U[]
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]
Creates an array from an iterable object.
Type Parameters
Returns T[]
- from<T, U>(
iterable: Iterable<T> | ArrayLike<T>,
mapfn: (v: T, k: number) => U,
thisArg?: any,
): U[] Creates an array from an iterable object.
Type Parameters
Parameters
Returns U[]
Creates an array from an array-like object.