Skip to main content
types.isAnyArrayBuffer - node__util.d.ts - Node documentation
function types.isAnyArrayBuffer

Usage in Deno

```typescript import { types } from "node:node__util.d.ts"; ```
isAnyArrayBuffer(object: unknown): object is ArrayBufferLike
Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. ```js util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true ```

Parameters

object: unknown

Return Type

object is ArrayBufferLike