JS Built-ins
TypedArrayofbeginner

Int32Array.of() Basic Usage

πŸ“– Usage Example
const arr = Int32Array.of(1, 2, 3);
// Int32Array [1, 2, 3]

TypedArray.of() creates a typed array from a variable number of arguments.

Use the static of() method to create an Int32Array from a set of values.

πŸ’‘ Hints (1)
  • β€’ Use Int32Array.of(1, 2, 3)