Skip to content

isArrayBuffer

isArrayBuffer(value): value is ArrayBuffer

Defined in: packages/core/src/guards/is-array-buffer.ts:13

Check if a value is an ArrayBuffer.

A SharedArrayBuffer does not pass — the two are distinct types with distinct ownership semantics. Use isSharedArrayBuffer for that one.

Realm-bound: an ArrayBuffer built in another realm (worker, iframe, vm context) is not recognised.

unknown

The value to check

value is ArrayBuffer

True if the value is an ArrayBuffer