Standard built-ins
ArrayBuffer.prototype.resizable
Indicates whether the buffer was created with resizable storage. It is not a check that a detached buffer can be resized.
Formal Syntax & Structure
javascript syntaxjavascript
buffer.resizableReturn Value
boolean
Whether the buffer is resizable.
Working Example
Example Snippetjavascript
console.log(new ArrayBuffer(2).resizable, new ArrayBuffer(2,{maxByteLength:8}).resizable);