function types.isDataView
Usage in Deno
import { types } from "node:util"; const { isDataView } = types;
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()
.
object is DataView