Usage in Deno
import * as mod from "node:util/types";
Returns true if the value is a built-in ArrayBuffer orSharedArrayBuffer instance.
Returns true if the value is an arguments object.
Returns true if the value is a built-in ArrayBuffer instance.This does not include SharedArrayBuffer instances. Usually, it isdesirable to test for both; See util.types.isAnyArrayBuffer() for that.
Returns true if the value is an instance of one of the ArrayBuffer views, such as typedarray objects or DataView. Equivalent toArrayBuffer.isView().
Returns true if the value is an async function.This only reports back what the JavaScript engine is seeing;in particular, the return value may not match the original source code ifa transpilation tool was used.
Returns true if the value is a BigInt64Array instance.
Returns true if the value is a BigUint64Array instance.
Returns true if the value is a boolean object, e.g. createdby new Boolean().
Returns true if the value is any boxed primitive object, e.g. createdby new Boolean(), new String() or Object(Symbol()).
Returns true if value is a CryptoKey, false otherwise.
Returns true if the value is a built-in DataView instance.
Returns true if the value is a native External value.
Returns true if the value is a built-in Float32Array instance.
Returns true if the value is a built-in Float64Array instance.
Returns true if the value is a generator function.This only reports back what the JavaScript engine is seeing;in particular, the return value may not match the original source code ifa transpilation tool was used.
Returns true if the value is a generator object as returned from abuilt-in generator function.This only reports back what the JavaScript engine is seeing;in particular, the return value may not match the original source code ifa transpilation tool was used.
Returns true if the value is a built-in Int16Array instance.
Returns true if the value is a built-in Int32Array instance.
Returns true if the value is a built-in Int8Array instance.
Returns true if value is a KeyObject, false otherwise.
Returns true if the value is an iterator returned for a built-in Map instance.
Returns true if the value is an instance of a Module Namespace Object.
Returns true if the value was returned by the constructor of a built-in Error type.
Returns true if the value is a number object, e.g. createdby new Number().
Returns true if the value is a regular expression object.
Returns true if the value is an iterator returned for a built-in Set instance.
Returns true if the value is a string object, e.g. createdby new String().
Returns true if the value is a symbol object, createdby calling Object() on a Symbol primitive.
Returns true if the value is a built-in TypedArray instance.
Returns true if the value is a built-in Uint16Array instance.
Returns true if the value is a built-in Uint32Array instance.
Returns true if the value is a built-in Uint8Array instance.
Returns true if the value is a built-in Uint8ClampedArray instance.