Open this example in the interactive library
Source code
import { types } from "node:util";
console.log(types.isDataView(new DataView(new ArrayBuffer(4))));
Sample output
true

Open this example in the interactive library
import { types } from "node:util";
console.log(types.isDataView(new DataView(new ArrayBuffer(4))));
true