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.
Float32Array.of(1)
Float32Array [1]
Float32Array.of(1, 2, 3)
Float32Array [1, 2, 3]
// Difference from constructor:
print(new Float32Array(3))
print(Float32Array.of(3))
0,0,0
3