Standard built-ins
TypedArray.prototype.buffer
Returns the underlying buffer; obtaining it does not copy bytes.
Formal Syntax & Structure
javascript syntaxjavascript
view.bufferReturn Value
ArrayBuffer | SharedArrayBuffer
Backing buffer object.
Working Example
Example Snippetjavascript
const a=new Uint8Array([4,5]); const b=new Uint8Array(a.buffer); b[0]=9; console.log(a[0]);