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