Interface Int32ArrayConstructor

    interface Int32ArrayConstructor {
        new Int32ArrayConstructornew (length: number): Int32Array;
        new Int32ArrayConstructornew (array: ArrayBufferLike | ArrayLike<number>): Int32Array;
        new Int32ArrayConstructornew (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
        new Int32ArrayConstructornew (elements: Iterable<number, any, any>): Int32Array;
        new Int32ArrayConstructornew (): Int32Array;
        BYTES_PER_ELEMENT: number;
        prototype: Int32Array;
        from(arrayLike: ArrayLike<number>): Int32Array;
        from<T>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => number), thisArg?: any): Int32Array;
        from(arrayLike: Iterable<number, any, any>, mapfn?: ((v: number, k: number) => number), thisArg?: any): Int32Array;
        of(...items: number[]): Int32Array;
    }

    Constructors

    Properties

    Methods

    Constructors

    Properties

    BYTES_PER_ELEMENT: number

    The size in bytes of each element in the array.

    prototype: Int32Array

    Methods

    • Creates an array from an array-like or iterable object.

      Parameters

      • arrayLike: ArrayLike<number>

        An array-like or iterable object to convert to an array.

      Returns Int32Array

    • Creates an array from an array-like or iterable object.

      Type Parameters

      • T

      Parameters

      • arrayLike: ArrayLike<T>

        An array-like or iterable object to convert to an array.

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

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

          • (v, k): number
          • Parameters

            • v: T
            • k: number

            Returns number

      • OptionalthisArg: any

        Value of 'this' used to invoke the mapfn.

      Returns Int32Array

    • Creates an array from an array-like or iterable object.

      Parameters

      • arrayLike: Iterable<number, any, any>

        An array-like or iterable object to convert to an array.

      • Optionalmapfn: ((v: number, k: number) => number)

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

          • (v, k): number
          • Parameters

            • v: number
            • k: number

            Returns number

      • OptionalthisArg: any

        Value of 'this' used to invoke the mapfn.

      Returns Int32Array

    • Returns a new array from a set of elements.

      Parameters

      • Rest...items: number[]

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

      Returns Int32Array