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

Usage in Deno

```typescript import { isAnyArrayBuffer } from "node:node__util--types.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