Skip to content

isSharedArrayBuffer

isSharedArrayBuffer(value): value is SharedArrayBuffer

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

Check if a value is a SharedArrayBuffer.

Answers false rather than throwing where the constructor is absent — browsers expose it only to cross-origin-isolated documents.

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

unknown

The value to check

value is SharedArrayBuffer

True if the value is a SharedArrayBuffer