Open this example in the interactive library
Source code
import { types } from "node:util";
console.log(types.isArrayBufferView(Buffer.from([1])));
Sample output
true

Open this example in the interactive library
import { types } from "node:util";
console.log(types.isArrayBufferView(Buffer.from([1])));
true