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

Usage in Deno

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