JS Built-ins
TypedArraybufferbeginner

TypedArray.prototype.buffer

πŸ“– Usage Example
const arr = new Int32Array([1, 2, 3]);
const buf = arr.buffer;
buf instanceof ArrayBuffer; // true

buffer returns the underlying ArrayBuffer that this typed array shares.

Access the buffer property to get the underlying ArrayBuffer of a TypedArray.

πŸ’‘ Hints (1)
  • β€’ arr.buffer returns the ArrayBuffer backing this typed array