JS Built-ins
TypedArrayBYTES_PER_ELEMENTbeginner

TypedArray Instance BYTES_PER_ELEMENT

πŸ“– Usage Example
const arr = new Float64Array(2);
arr.BYTES_PER_ELEMENT; // 8

Instance BYTES_PER_ELEMENT gives the byte size of each element.

Access the BYTES_PER_ELEMENT property on a TypedArray instance.

πŸ’‘ Hints (1)
  • β€’ Instance BYTES_PER_ELEMENT equals the static version