Skip to main content
types.isDataView - util - Node documentation
function types.isDataView

Usage in Deno

import { types } from "node:util";
isDataView(object: unknown): object is DataView

Returns true if the value is a built-in DataView instance.

const ab = new ArrayBuffer(20);
util.types.isDataView(new DataView(ab));  // Returns true
util.types.isDataView(new Float64Array());  // Returns false

See also ArrayBuffer.isView().

Parameters

object: unknown

Return Type

object is DataView
Back to top