JS Built-ins
TypedArraybyteLengthbeginner

TypedArray.prototype.byteLength

πŸ“– Usage Example
const arr = new Int32Array(3); // 3 x 4 bytes
arr.byteLength; // 12

byteLength returns the total size in bytes of the typed array's view.

Access byteLength to get the total byte size of the TypedArray.

πŸ’‘ Hints (1)
  • β€’ byteLength = length Γ— BYTES_PER_ELEMENT