Standard built-ins
ArrayBuffer.prototype.byteLength
Current byte capacity; it becomes zero after detachment.
Formal Syntax & Structure
javascript syntaxjavascript
buffer.byteLengthReturn Value
number
Current size in bytes.
Working Example
Example Snippetjavascript
const b = new ArrayBuffer(6); console.log(b.byteLength);