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

Usage in Deno

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

Parameters

object: unknown

Return Type

object is Uint16Array