Standard built-ins

ArrayBuffer.prototype.detached

Try the free JavaScript compiler

Reports whether ownership of the original ArrayBuffer has been relinquished through detachment.

Formal Syntax & Structure

javascript syntaxjavascript
buffer.detached

Return Value

boolean

Whether the underlying buffer is detached.

Working Example

Example Snippetjavascript
const b = new ArrayBuffer(2); b.transfer(); console.log(b.detached);
JavaScript Reference