Interface ArrayConstructor
interface ArrayConstructor {
new ArrayConstructornew (arrayLength?: number): any[];
new ArrayConstructornew <T>(arrayLength: number): T[];
new ArrayConstructornew <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, any, any> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T, any, any> | 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 ArrayConstructornew (arrayLength?: number): any[];
new ArrayConstructornew <T>(arrayLength: number): T[];
new ArrayConstructornew <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, any, any> | ArrayLike<T>): T[];
from<T, U>(iterable: Iterable<T, any, any> | 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): T[]
Type Parameters
Returns T[]
- from<T, U>(arrayLike, mapfn, thisArg?): U[]
Creates an array from an iterable object.
Type Parameters
Parameters
Returns U[]
- from<T>(iterable): T[]
Creates an array from an iterable object.
Type Parameters
Returns T[]
- from<T, U>(iterable, mapfn, thisArg?): U[]
Creates an array from an iterable object.
Type Parameters
Parameters
Returns U[]
Creates an array from an array-like object.