Standard built-ins

ArrayBuffer.prototype.resizable

Try the free JavaScript compiler

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.resizable

Return Value

boolean

Whether the buffer is resizable.

Working Example

Example Snippetjavascript
console.log(new ArrayBuffer(2).resizable, new ArrayBuffer(2,{maxByteLength:8}).resizable);
JavaScript Reference