types.isAnyArrayBuffer - Node documentation
function types.isAnyArrayBuffer

Usage in Deno

import { types } from "node:util";
const { isAnyArrayBuffer } = 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