isArrayBuffer - Node documentation
function isArrayBuffer

Usage in Deno

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

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

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

Parameters

object: unknown

Return Type

object is ArrayBuffer