JS Built-ins
TypedArraylengthbeginner

TypedArray.prototype.length

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

length returns the number of elements in the typed array.

Access the length property to get the number of elements in a TypedArray.

πŸ’‘ Hints (1)
  • β€’ Access arr.length like a regular array