BigUint64Array
typed array represents an array of 64-bit unsigned integers in the platform byte order. If control over byte order is needed, use
DataView
instead. The contents are initialized to
0n
. Once established, you can reference elements in the array using the object's methods, or by using standard array index syntax (that is, using bracket notation).
BigUint64Array()
BigUint64Array
对象。
BigUint64Array.BYTES_PER_ELEMENT
8
in the case of a
BigUint64Array
.
BigUint64Array.name
BigUint64Array
type this is "BigUint64Array".
BigUint64Array.from()
BigUint64Array
from an array-like or iterable object. See also
Array.from()
.
BigUint64Array.of()
BigUint64Array
with a variable number of arguments. See also
Array.of()
.
BigUint64Array.prototype.buffer
ArrayBuffer
referenced by the
BigUint64Array
. This is fixed at construction time and thus
read only
.
BigUint64Array.prototype.byteLength
BigUint64Array
from the start of its
ArrayBuffer
. This is fixed at construction time and thus
read only.
BigUint64Array.prototype.byteOffset
BigUint64Array
from the start of its
ArrayBuffer
. This is fixed at construction time and thus
read only.
BigUint64Array.prototype.length
BigUint64Array
. This is fixed at construction time and thus
read only.
BigUint64Array.prototype.copyWithin()
Array.prototype.copyWithin()
.
BigUint64Array.prototype.entries()
Array Iterator
object that contains the key/value pairs for each index in the array. See also
Array.prototype.entries()
.
BigUint64Array.prototype.every()
Array.prototype.every()
.
BigUint64Array.prototype.fill()
Array.prototype.fill()
.
BigUint64Array.prototype.filter()
Array.prototype.filter()
.
BigUint64Array.prototype.find()
undefined
if not found. See also
Array.prototype.find()
.
BigUint64Array.prototype.findIndex()
Array.prototype.findIndex()
.
BigUint64Array.prototype.forEach()
Array.prototype.forEach()
.
BigUint64Array.prototype.includes()
true
or
false
as appropriate. See also
Array.prototype.includes()
.
BigUint64Array.prototype.indexOf()
Array.prototype.indexOf()
.
BigUint64Array.prototype.join()
Array.prototype.join()
.
BigUint64Array.prototype.keys()
Array Iterator
that contains the keys for each index in the array. See also
Array.prototype.keys()
.
BigUint64Array.prototype.lastIndexOf()
Array.prototype.lastIndexOf()
.
BigUint64Array.prototype.map()
Array.prototype.map()
.
BigUint64Array.prototype.reduce()
Array.prototype.reduce()
.
BigUint64Array.prototype.reduceRight()
Array.prototype.reduceRight()
.
BigUint64Array.prototype.reverse()
Array.prototype.reverse()
.
BigUint64Array.prototype.set()
Stores multiple values in the typed array, reading input values from a specified array.
BigUint64Array.prototype.slice()
Array.prototype.slice()
.
BigUint64Array.prototype.some()
true
if at least one element in this array satisfies the provided testing function. See also
Array.prototype.some()
.
BigUint64Array.prototype.sort()
Array.prototype.sort()
.
BigUint64Array.prototype.subarray()
BigUint64Array
from the given start and end element index.
BigUint64Array.prototype.values()
Array Iterator
object that contains the values for each index in the array. See also
Array.prototype.values()
.
BigUint64Array.prototype.toLocaleString()
Array.prototype.toLocaleString()
.
BigUint64Array.prototype.toString()
Array.prototype.toString()
.
BigUint64Array.prototype[@@iterator]()
Array Iterator
object that contains the values for each index in the array.
BigUint64Array
// From a length
var biguint64 = new BigUint64Array(2);
biguint64[0] = 42n;
console.log(biguint64[0]); // 42n
console.log(biguint64.length); // 2
console.log(biguint64.BYTES_PER_ELEMENT); // 8
// From an array
var arr = new BigUint64Array([21n,31n]);
console.log(arr[1]); // 31n
// From another TypedArray
var x = new BigUint64Array([21n, 31n]);
var y = new BigUint64Array(x);
console.log(y[0]); // 21n
// From an ArrayBuffer
var buffer = new ArrayBuffer(32);
var z = new BigUint64Array(buffer, 0, 4);
// From an iterable
var iterable = function*(){ yield* [1n, 2n, 3n]; }();
var biguint64 = new BigUint64Array(iterable);
// BigUint64Array[1n, 2n, 3n]
| 规范 |
|---|
|
ECMAScript (ECMA-262)
The definition of 'BigUint64Array' in that specification. |
| Desktop | Mobile | Server | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BigUint64Array
|
Chrome 67 | Edge 79 | Firefox 68 | IE No | Opera 54 | Safari No | WebView Android 67 | Chrome Android 67 | Firefox Android 68 | Opera Android 48 | Safari iOS No | Samsung Internet Android 9.0 | nodejs 10.4.0 |
BigUint64Array()
构造函数
|
Chrome 67 | Edge 79 | Firefox 68 | IE No | Opera 54 | Safari No | WebView Android 67 | Chrome Android 67 | Firefox Android 68 | Opera Android 48 | Safari iOS No | Samsung Internet Android 9.0 | nodejs 10.4.0 |
完整支持
不支持
TypedArray
TypedArray.from()
TypedArray.of()
TypedArray.prototype.copyWithin()
TypedArray.prototype.entries()
TypedArray.prototype.every()
TypedArray.prototype.fill()
TypedArray.prototype.filter()
TypedArray.prototype.find()
TypedArray.prototype.findIndex()
TypedArray.prototype.forEach()
TypedArray.prototype.includes()
TypedArray.prototype.indexOf()
TypedArray.prototype.join()
TypedArray.prototype.keys()
TypedArray.prototype.lastIndexOf()
TypedArray.prototype.map()
TypedArray.prototype.reduce()
TypedArray.prototype.reduceRight()
TypedArray.prototype.reverse()
TypedArray.prototype.set()
TypedArray.prototype.slice()
TypedArray.prototype.some()
TypedArray.prototype.sort()
TypedArray.prototype.subarray()
TypedArray.prototype.toLocaleString()
TypedArray.prototype.toString()
TypedArray.prototype.values()
TypedArray.prototype[@@iterator]()
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
BigInt64Array
BigUint64Array
Function
Object
Object.prototype.__defineGetter__()
Object.prototype.__defineSetter__()
Object.prototype.__lookupGetter__()
Object.prototype.__lookupSetter__()
Object.prototype.hasOwnProperty()
Object.prototype.isPrototypeOf()
Object.prototype.propertyIsEnumerable()
Object.prototype.toLocaleString()
Object.prototype.toSource()
Object.prototype.toString()
Object.prototype.valueOf()
Object.setPrototypeOf()