BigInt64Array()
The BigInt64Array()
typed array constructor creates a
new BigInt64Array
object, which is, an array of 64-bit signed 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).
Syntax
new BigInt64Array()
new BigInt64Array(length)
new BigInt64Array(typedArray)
new BigInt64Array(object)
new BigInt64Array(buffer)
new BigInt64Array(buffer, byteOffset)
new BigInt64Array(buffer, byteOffset, length)
Note:
BigInt64Array()
can only be constructed withnew
. Attempting to call it withoutnew
throws aTypeError
.
Parameters
See TypedArray
.
Exceptions
See TypedArray
.