Interface BigInt64ArrayConstructor

    interface BigInt64ArrayConstructor {
        new BigInt64ArrayConstructor(
            length?: number,
        ): BigInt64Array<ArrayBuffer>;
        new BigInt64ArrayConstructor(
            array: ArrayLike<bigint> | Iterable<bigint>,
        ): BigInt64Array<ArrayBuffer>;
        new BigInt64ArrayConstructor<
            TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
        >(
            buffer: TArrayBuffer,
            byteOffset?: number,
            length?: number,
        ): BigInt64Array<TArrayBuffer>;
        new BigInt64ArrayConstructor(
            array: ArrayBuffer | ArrayLike<bigint>,
        ): BigInt64Array<ArrayBuffer>;
        BYTES_PER_ELEMENT: number;
        prototype: BigInt64Array;
        from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
        from<U>(
            arrayLike: ArrayLike<U>,
            mapfn: (v: U, k: number) => bigint,
            thisArg?: any,
        ): BigInt64Array<ArrayBuffer>;
        of(...items: bigint[]): BigInt64Array<ArrayBuffer>;
    }

    Constructors

    Properties

    Methods

    Constructors

    Properties

    BYTES_PER_ELEMENT: number

    The size in bytes of each element in the array.

    prototype: BigInt64Array

    Methods

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

      Parameters

      • arrayLike: ArrayLike<bigint>

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

      Returns BigInt64Array<ArrayBuffer>

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

      Type Parameters

      • U

      Parameters

      • arrayLike: ArrayLike<U>

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

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

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

      • OptionalthisArg: any

        Value of 'this' used to invoke the mapfn.

      Returns BigInt64Array<ArrayBuffer>