from
const arr = Int32Array.from([10, 20, 30]); // Int32Array [10, 20, 30]
TypedArray.from() creates a TypedArray from an iterable or array-like.
Use the static from() method to create a typed array from a regular array.