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

Usage in Deno

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