Standard built-ins
ArrayBuffer.prototype.detached
Reports whether ownership of the original ArrayBuffer has been relinquished through detachment.
Formal Syntax & Structure
javascript syntaxjavascript
buffer.detachedReturn Value
boolean
Whether the underlying buffer is detached.
Working Example
Example Snippetjavascript
const b = new ArrayBuffer(2); b.transfer(); console.log(b.detached);