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

Usage in Deno

```typescript import { isTypedArray } from "node:node__util--types.d.ts"; ```
isTypedArray(object: unknown): object is TypedArray
Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. ```js util.types.isTypedArray(new ArrayBuffer()); // Returns false util.types.isTypedArray(new Uint8Array()); // Returns true util.types.isTypedArray(new Float64Array()); // Returns true ``` See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).

Parameters

object: unknown

Return Type

object is TypedArray