Skip to main content
isInt32Array - util/types - Node documentation
function isInt32Array

Usage in Deno

import { isInt32Array } from "node:util/types";
isInt32Array(object: unknown): object is Int32Array

Returns true if the value is a built-in Int32Array instance.

util.types.isInt32Array(new ArrayBuffer());  // Returns false
util.types.isInt32Array(new Int32Array());  // Returns true
util.types.isInt32Array(new Float64Array());  // Returns false

Parameters

object: unknown

Return Type

object is Int32Array