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

Usage in Deno

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

Parameters

object: unknown

Return Type

object is Uint8Array