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

Usage in Deno

```typescript import { types } from "node:node__util.d.ts"; ```
isDataView(object: unknown): object is DataView
Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. ```js const ab = new ArrayBuffer(20); util.types.isDataView(new DataView(ab)); // Returns true util.types.isDataView(new Float64Array()); // Returns false ``` 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 DataView