isAnyArrayBuffer - Node documentation
function isAnyArrayBuffer

Usage in Deno

import { isAnyArrayBuffer } from "node:util/types";
isAnyArrayBuffer(object: unknown): object is ArrayBufferLike

Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.

See also util.types.isArrayBuffer() and util.types.isSharedArrayBuffer().

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

Parameters

object: unknown

Return Type

object is ArrayBufferLike