JS Built-ins
TypedArrayUint8Arraybeginner

Create Uint8Array from Array

πŸ“– Usage Example
const arr = new Uint8Array([10, 20, 30]);
arr[0]; // 10

Pass a regular array to create a TypedArray with those values.

Create a Uint8Array from an existing JavaScript array.

πŸ’‘ Hints (1)
  • β€’ Use new Uint8Array(array)