JS Built-ins
TypedArrayfrombeginner

Int32Array.from() with Array

πŸ“– Usage Example
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.

πŸ’‘ Hints (1)
  • β€’ Use Int32Array.from(array)