function isDataView
Usage in Deno
import { isDataView } from "node:util/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