function types.isUint8Array
Usage in Deno
import { types } from "node:util"; const { isUint8Array } = types;
isUint8Array(object: unknown): object is Uint8Array
Returns true
if the value is a built-in Uint8Array
instance.
util.types.isUint8Array(new ArrayBuffer()); // Returns false util.types.isUint8Array(new Uint8Array()); // Returns true util.types.isUint8Array(new Float64Array()); // Returns false
object is Uint8Array