神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface BigUint64Array<TArrayBuffer>

    A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated, an exception is raised.

    interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
        "[toStringTag]": "BigUint64Array";
        buffer: TArrayBuffer;
        byteLength: number;
        byteOffset: number;
        BYTES_PER_ELEMENT: number;
        length: number;
        "[iterator]"(): IterableIterator<bigint>;
        copyWithin(target: number, start: number, end?: number): this;
        copyWithin(target: number, start: number, end?: number): this;
        entries(): ArrayIterator<[number, bigint]>;
        entries(): IterableIterator<[number, bigint]>;
        every(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => boolean,
            thisArg?: any,
        ): boolean;
        every(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => boolean,
            thisArg?: any,
        ): boolean;
        fill(value: bigint, start?: number, end?: number): this;
        fill(value: bigint, start?: number, end?: number): this;
        filter(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => any,
            thisArg?: any,
        ): BigUint64Array<ArrayBuffer>;
        filter(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => any,
            thisArg?: any,
        ): BigUint64Array;
        find(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => boolean,
            thisArg?: any,
        ): bigint;
        find(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => boolean,
            thisArg?: any,
        ): bigint;
        findIndex(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => boolean,
            thisArg?: any,
        ): number;
        findIndex(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => boolean,
            thisArg?: any,
        ): number;
        forEach(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => void,
            thisArg?: any,
        ): void;
        forEach(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => void,
            thisArg?: any,
        ): void;
        includes(searchElement: bigint, fromIndex?: number): boolean;
        includes(searchElement: bigint, fromIndex?: number): boolean;
        indexOf(searchElement: bigint, fromIndex?: number): number;
        indexOf(searchElement: bigint, fromIndex?: number): number;
        join(separator?: string): string;
        join(separator?: string): string;
        keys(): ArrayIterator<number>;
        keys(): IterableIterator<number>;
        lastIndexOf(searchElement: bigint, fromIndex?: number): number;
        lastIndexOf(searchElement: bigint, fromIndex?: number): number;
        map(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => bigint,
            thisArg?: any,
        ): BigUint64Array<ArrayBuffer>;
        map(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => bigint,
            thisArg?: any,
        ): BigUint64Array;
        reduce(
            callbackfn: (
                previousValue: bigint,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => bigint,
        ): bigint;
        reduce<U>(
            callbackfn: (
                previousValue: U,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => U,
            initialValue: U,
        ): U;
        reduce(
            callbackfn: (
                previousValue: bigint,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array,
            ) => bigint,
        ): bigint;
        reduce<U>(
            callbackfn: (
                previousValue: U,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array,
            ) => U,
            initialValue: U,
        ): U;
        reduceRight(
            callbackfn: (
                previousValue: bigint,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => bigint,
        ): bigint;
        reduceRight<U>(
            callbackfn: (
                previousValue: U,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => U,
            initialValue: U,
        ): U;
        reduceRight(
            callbackfn: (
                previousValue: bigint,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array,
            ) => bigint,
        ): bigint;
        reduceRight<U>(
            callbackfn: (
                previousValue: U,
                currentValue: bigint,
                currentIndex: number,
                array: BigUint64Array,
            ) => U,
            initialValue: U,
        ): U;
        reverse(): this;
        reverse(): this;
        set(array: ArrayLike<bigint>, offset?: number): void;
        set(array: ArrayLike<bigint>, offset?: number): void;
        slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;
        slice(start?: number, end?: number): BigUint64Array;
        some(
            predicate: (
                value: bigint,
                index: number,
                array: BigUint64Array<TArrayBuffer>,
            ) => boolean,
            thisArg?: any,
        ): boolean;
        some(
            callbackfn: (
                value: bigint,
                index: number,
                array: BigUint64Array,
            ) => boolean,
            thisArg?: any,
        ): boolean;
        sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
        sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
        subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;
        subarray(begin?: number, end?: number): BigUint64Array;
        toLocaleString(
            locales?: string | string[],
            options?: NumberFormatOptions,
        ): string;
        toLocaleString(): string;
        toString(): string;
        toString(): string;
        values(): ArrayIterator<bigint>;
        values(): IterableIterator<bigint>;
    }

    Type Parameters

    • TArrayBuffer extends ArrayBufferLike = ArrayBufferLike
    Index

    Properties

    "[toStringTag]": "BigUint64Array"

    一个字符串,表示对象的类型。

    A string value that represents the type of the object.

    buffer: TArrayBuffer

    The ArrayBuffer instance referenced by the array.

    byteLength: number

    The length in bytes of the array.

    byteOffset: number

    The offset in bytes of the array.

    BYTES_PER_ELEMENT: number

    The size in bytes of each element in the array.

    length: number

    The length of the array.

    Methods

    • Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

      Parameters

      • target: number

        If target is negative, it is treated as length+target where length is the length of the array.

      • start: number

        If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

      • Optionalend: number

        If not specified, length of the this object is used as its default value.

      Returns this

    • Parameters

      • target: number
      • start: number
      • Optionalend: number

      Returns this

      在数组内部,将一段序列(由 start 和 end 决定)复制到另一个位置(由 target 决定),并返回改变后的数组。

      Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

      目标位置。如果 target 是负数,则将其视为 length+target。

      If target is negative, it is treated as length+target where length is the length of the array.

      开始位置。如果 start 是负数,则将其视为 length+start。

      If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

      结束位置。如果未指定,则默认为数组的长度。

      If not specified, length of the this object is used as its default value.

    • Yields index, value pairs for every entry in the array.

      Returns ArrayIterator<[number, bigint]>

    • Returns IterableIterator<[number, bigint]>

      返回一个新的迭代器对象,该对象包含数组中每个索引的键/值对。

      Yields index, value pairs for every entry in the array.

    • Determines whether all the members of an array satisfy the specified test.

      Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean

        A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns false, or until the end of the array.

      • OptionalthisArg: any

        An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      Returns boolean

    • Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean
      • OptionalthisArg: any

      Returns boolean

      测试一个数组内的所有元素是否都能通过某个指定函数的测试。

      Determines whether all the members of an array satisfy the specified test.

      用于测试每个元素的函数。

      A function that accepts up to three arguments. The every method calls the callbackfn function for each element in the array until the callbackfn returns false, or until the end of the array.

      执行 callbackfn 时用作 this 的对象。

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    • Changes all array elements from start to end index to a static value and returns the modified array

      Parameters

      • value: bigint

        value to fill array section with

      • Optionalstart: number

        index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

      • Optionalend: number

        index to stop filling the array at. If end is negative, it is treated as length+end.

      Returns this

    • Parameters

      • value: bigint
      • Optionalstart: number
      • Optionalend: number

      Returns this

      使用一个固定值填充一个数组中从起始索引到终止索引内的全部元素。

      Returns the this object after filling the section identified by start and end with value

      用于填充数组的值。

      value to fill array section with

      起始索引,默认为 0。

      index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

      终止索引,默认为 a.length。

      index to stop filling the array at. If end is negative, it is treated as length+end.

    • Returns the elements of an array that meet the condition specified in a callback function.

      Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any

        A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      • OptionalthisArg: any

        An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      Returns BigUint64Array<ArrayBuffer>

    • Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array) => any
      • OptionalthisArg: any

      Returns BigUint64Array

      创建一个新数组, 其包含通过所提供函数实现的测试的所有元素。

      Returns the elements of an array that meet the condition specified in a callback function.

      为数组中的每个元素执行的函数。

      A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.

      执行 callbackfn 时用作 this 的对象。

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    • Returns the value of the first element in the array where predicate is true, and undefined otherwise.

      Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean

        find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

      • OptionalthisArg: any

        If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

      Returns bigint

    • Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array) => boolean
      • OptionalthisArg: any

      Returns bigint

      返回数组中满足提供的测试函数的第一个元素的值。否则返回 undefined。

      Returns the value of the first element in the array where predicate is true, and undefined otherwise.

      在数组中的每个元素上执行的函数。

      find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

      执行 predicate 时用作 this 的对象。

      If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

    • Returns the index of the first element in the array where predicate is true, and -1 otherwise.

      Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean

        find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

      • OptionalthisArg: any

        If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

      Returns number

    • Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array) => boolean
      • OptionalthisArg: any

      Returns number

      返回数组中满足提供的测试函数的第一个元素的索引。若没有找到对应元素则返回-1。

      Returns the index of the first element in the array where predicate is true, and -1 otherwise.

      在数组中的每个元素上执行的函数。

      find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

      执行 predicate 时用作 this 的对象。

      If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

    • Performs the specified action for each element in an array.

      Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void

        A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

      • OptionalthisArg: any

        An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      Returns void

    • Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array) => void
      • OptionalthisArg: any

      Returns void

      对数组的每个成员执行一次给定的函数。

      Performs the specified action for each element in an array.

      为数组中每个元素执行的函数。

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

      执行 callbackfn 时用作 this 的对象。

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    • Determines whether an array includes a certain element, returning true or false as appropriate.

      Parameters

      • searchElement: bigint

        The element to search for.

      • OptionalfromIndex: number

        The position in this array at which to begin searching for searchElement.

      Returns boolean

    • Parameters

      • searchElement: bigint
      • OptionalfromIndex: number

      Returns boolean

      判断当前数组是否包含某指定的值,如果是,则返回 true,否则返回 false。

      Determines whether an array includes a certain element, returning true or false as appropriate.

      需要查找的元素。

      The element to search for.

      从该索引处开始查找 searchElement。

      The position in this array at which to begin searching for searchElement.

    • Returns the index of the first occurrence of a value in an array.

      Parameters

      • searchElement: bigint

        The value to locate in the array.

      • OptionalfromIndex: number

        The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

      Returns number

    • Parameters

      • searchElement: bigint
      • OptionalfromIndex: number

      Returns number

      返回在数组中可以找到一个给定元素的第一个索引,如果不存在,则返回-1。

      Returns the index of the first occurrence of a value in an array.

      要查找的元素。

      The value to locate in the array.

      开始查找的索引。

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

    • Adds all the elements of an array separated by the specified separator string.

      Parameters

      • Optionalseparator: string

        A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

      Returns string

    • Parameters

      • Optionalseparator: string

      Returns string

      将一个数组的所有元素连接成一个字符串并返回这个字符串。

      Adds all the elements of an array separated by the specified separator string.

      指定一个字符串来分隔数组的每个元素。

      A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.

    • Yields each index in the array.

      Returns ArrayIterator<number>

    • Returns IterableIterator<number>

      返回一个包含数组中每个索引键的迭代器。

      Yields each index in the array.

    • Returns the index of the last occurrence of a value in an array.

      Parameters

      • searchElement: bigint

        The value to locate in the array.

      • OptionalfromIndex: number

        The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

      Returns number

    • Parameters

      • searchElement: bigint
      • OptionalfromIndex: number

      Returns number

      返回指定元素在数组中的最后一个的索引,如果不存在则返回 -1。

      Returns the index of the last occurrence of a value in an array.

      需要查找的元素。

      The value to locate in the array.

      从此位置开始逆向查找。

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

    • Calls a defined callback function on each element of an array, and returns an array that contains the results.

      Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint

        A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

      • OptionalthisArg: any

        An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      Returns BigUint64Array<ArrayBuffer>

    • Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint
      • OptionalthisArg: any

      Returns BigUint64Array

      创建一个新数组,其结果是该数组中的每个元素都调用一个提供的函数后返回的结果。

      Calls a defined callback function on each element of an array, and returns an array that contains the results.

      生成新数组元素的函数。

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

      执行 callbackfn 时用作 this 的对象。

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      Parameters

      • callbackfn: (
            previousValue: bigint,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array<TArrayBuffer>,
        ) => bigint

        A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      Returns bigint

    • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      Type Parameters

      • U

      Parameters

      • callbackfn: (
            previousValue: U,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array<TArrayBuffer>,
        ) => U

        A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      • initialValue: U

        If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      Returns U

    • Parameters

      • callbackfn: (
            previousValue: bigint,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array,
        ) => bigint

      Returns bigint

      对数组中的每个元素执行一个由您提供的reducer函数(升序执行),将其结果汇总为单个返回值。

      Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      在数组中每个元素上执行的函数。

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      作为第一次调用 callback 的第一个参数的值。

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    • Type Parameters

      • U

      Parameters

      • callbackfn: (
            previousValue: U,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array,
        ) => U
      • initialValue: U

      Returns U

      对数组中的每个元素执行一个由您提供的reducer函数(升序执行),将其结果汇总为单个返回值。

      Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      在数组中每个元素上执行的函数。

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      作为第一次调用 callback 的第一个参数的值。

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      Parameters

      • callbackfn: (
            previousValue: bigint,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array<TArrayBuffer>,
        ) => bigint

        A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      Returns bigint

    • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      Type Parameters

      • U

      Parameters

      • callbackfn: (
            previousValue: U,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array<TArrayBuffer>,
        ) => U

        A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      • initialValue: U

        If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      Returns U

    • Parameters

      • callbackfn: (
            previousValue: bigint,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array,
        ) => bigint

      Returns bigint

      对数组中的每个元素执行一个由您提供的reducer函数(降序执行),将其结果汇总为单个返回值。

      Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      在数组中每个元素上执行的函数。

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      作为第一次调用 callback 的第一个参数的值。

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    • Type Parameters

      • U

      Parameters

      • callbackfn: (
            previousValue: U,
            currentValue: bigint,
            currentIndex: number,
            array: BigUint64Array,
        ) => U
      • initialValue: U

      Returns U

      对数组中的每个元素执行一个由您提供的reducer函数(降序执行),将其结果汇总为单个返回值。

      Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

      在数组中每个元素上执行的函数。

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      作为第一次调用 callback 的第一个参数的值。

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    • Reverses the elements in the array.

      Returns this

    • Returns this

      颠倒数组中元素的位置。

      Reverses the elements in the array.

    • Sets a value or an array of values.

      Parameters

      • array: ArrayLike<bigint>

        A typed or untyped array of values to set.

      • Optionaloffset: number

        The index in the current array at which the values are to be written.

      Returns void

    • Parameters

      • array: ArrayLike<bigint>
      • Optionaloffset: number

      Returns void

      设置一个值或一个数组的值。

      Sets a value or an array of values.

      要设置的值的类型化或非类型化数组。

      A typed or untyped array of values to set.

      要写入值的当前数组中的索引。

      The index in the current array at which the values are to be written.

    • Returns a section of an array.

      Parameters

      • Optionalstart: number

        The beginning of the specified portion of the array.

      • Optionalend: number

        The end of the specified portion of the array.

      Returns BigUint64Array<ArrayBuffer>

    • Parameters

      • Optionalstart: number
      • Optionalend: number

      Returns BigUint64Array

      返回数组的一部分。

      Returns a section of an array.

      数组的指定部分的开头。

      The beginning of the specified portion of the array.

      数组的指定部分的结尾。

      The end of the specified portion of the array.

    • Determines whether the specified callback function returns true for any element of an array.

      Parameters

      • predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean

        A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns true, or until the end of the array.

      • OptionalthisArg: any

        An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      Returns boolean

    • Parameters

      • callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean
      • OptionalthisArg: any

      Returns boolean

      测试是否至少有一个元素通过由提供的函数实现的测试。

      Determines whether the specified callback function returns true for any element of an array.

      为数组中的每个元素执行的函数。

      A function that accepts up to three arguments. The some method calls the callbackfn function for each element in the array until the callbackfn returns true, or until the end of the array.

      执行 callbackfn 时用作 this 的对象。

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    • Sorts the array.

      Parameters

      • OptionalcompareFn: (a: bigint, b: bigint) => number | bigint

        The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.

      Returns this

    • Parameters

      • OptionalcompareFn: (a: bigint, b: bigint) => number | bigint

      Returns this

      对数组的元素进行排序。

      Sorts the array.

      指定排序顺序的函数。如果省略,元素将按照升序排序。

      The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.

    • Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.

      Parameters

      • Optionalbegin: number

        The index of the beginning of the array.

      • Optionalend: number

        The index of the end of the array.

      Returns BigUint64Array<TArrayBuffer>

    • Parameters

      • Optionalbegin: number
      • Optionalend: number

      Returns BigUint64Array

      获取此数组的 ArrayBuffer 存储的新 BigUint64Array 视图,引用从 begin(包括)到 end(不包括)的元素。

      Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.

      数组开头的索引。

      The index of the beginning of the array.

      数组结尾的索引。

      The index of the end of the array.

    • Converts the array to a string by using the current locale.

      Parameters

      Returns string

    • Returns string

      使用当前区域设置将数组转换为字符串。

      Converts the array to a string by using the current locale.

    • Returns a string representation of the array.

      Returns string

    • Returns string

      返回数组的字符串表示形式。

      Returns a string representation of the array.

    • Yields each value in the array.

      Returns ArrayIterator<bigint>

    • Returns IterableIterator<bigint>

      产生数组中的每个值。

      Yields each value in the array.