Skip to main content
types.isTypedArray - util - Node documentation
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().

Parameters

object: unknown

Return Type

object is TypedArray
Back to top