types.isSharedArrayBuffer - Node documentation
function types.isSharedArrayBuffer

Usage in Deno

import { types } from "node:util";
const { isSharedArrayBuffer } = types;
isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer

Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

util.types.isSharedArrayBuffer(new ArrayBuffer());  // Returns false
util.types.isSharedArrayBuffer(new SharedArrayBuffer());  // Returns true

Parameters

object: unknown

Return Type

object is SharedArrayBuffer