Returns a new typed array from the given elements.
of(...elements)
elements variadic
Elements to include in the new typed array object.
Returns a typed array.
BigInt64Array.of(1)
BigInt64Array [1]
BigInt64Array.of(1, 2, 3)
BigInt64Array [1, 2, 3]
// Difference from constructor:
print(new BigInt64Array(3))
print(BigInt64Array.of(3))
0,0,0
3