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[];
    }
    • Parameters

      • OptionalarrayLength: number

      Returns any[]

    • Type Parameters

      • T

      Parameters

      • arrayLength: number

      Returns T[]

    • Type Parameters

      • T

      Parameters

      • Rest...items: T[]

      Returns T[]

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • OptionalarrayLength: number

      Returns any[]

    • Type Parameters

      • T

      Parameters

      • arrayLength: number

      Returns T[]

    • Type Parameters

      • T

      Parameters

      • Rest...items: T[]

      Returns T[]

    Properties

    [species]: ArrayConstructor
    prototype: any[]

    Methods

    • Creates an array from an array-like object.

      Type Parameters

      • T

      Parameters

      • arrayLike: ArrayLike<T>

        An array-like object to convert to an array.

      Returns T[]

    • Creates an array from an iterable object.

      Type Parameters

      • T
      • U

      Parameters

      • arrayLike: ArrayLike<T>

        An array-like object to convert to an array.

      • mapfn: ((v: T, k: number) => U)

        A mapping function to call on every element of the array.

          • (v, k): U
          • Parameters

            • v: T
            • k: number

            Returns U

      • OptionalthisArg: any

        Value of 'this' used to invoke the mapfn.

      Returns U[]

    • Creates an array from an iterable object.

      Type Parameters

      • T

      Parameters

      Returns T[]

    • Creates an array from an iterable object.

      Type Parameters

      • T
      • U

      Parameters

      • iterable: Iterable<T, any, any> | ArrayLike<T>

        An iterable object to convert to an array.

      • mapfn: ((v: T, k: number) => U)

        A mapping function to call on every element of the array.

          • (v, k): U
          • Parameters

            • v: T
            • k: number

            Returns U

      • OptionalthisArg: any

        Value of 'this' used to invoke the mapfn.

      Returns U[]

    • Parameters

      • arg: any

      Returns arg is any[]

    • Returns a new array from a set of elements.

      Type Parameters

      • T

      Parameters

      • Rest...items: T[]

        A set of elements to include in the new array object.

      Returns T[]