util.types provides a number of type checks for different kinds of built-in objects.

See also:

Static methods

staticisAnyArrayBuffer(value:Dynamic):Bool

Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.

See also:

staticisAsyncFunction(value:Dynamic):Bool

Returns true if the value is an async function.

See also:

staticisBigInt64Array(value:Dynamic):Bool

Returns true if the value is a BigInt64Array instance.

See also:

staticisBigUint64Array(value:Dynamic):Bool

Returns true if the value is a BigUint64Array instance.

See also:

staticisBooleanObject(value:Dynamic):Bool

Returns true if the value is a boolean object, e.g. created by new Boolean().

See also:

staticisBoxedPrimitive(value:Dynamic):Bool

Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).

See also:

staticisDataView(value:Dynamic):Bool

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

See also:

staticisDate(value:Dynamic):Bool

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

See also:

staticisExternal(value:Dynamic):Bool

Returns true if the value is a native External value.

See also:

staticisGeneratorObject(value:Dynamic):Bool

Returns true if the value is a generator object as returned from a built-in generator function.

See also:

staticisInt16Array(value:Dynamic):Bool

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

See also:

staticisInt32Array(value:Dynamic):Bool

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

See also:

staticisInt8Array(value:Dynamic):Bool

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

See also:

staticisMap(value:Dynamic):Bool

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

See also:

staticisMapIterator(value:Dynamic):Bool

Returns true if the value is an iterator returned for a built-in Map instance.

See also:

staticisModuleNamespaceObject(value:Dynamic):Bool

Returns true if the value is an instance of a Module Namespace Object.

See also:

staticisNativeError(value:Dynamic):Bool

Returns true if the value is an instance of a built-in Error type.

See also:

staticisNumberObject(value:Dynamic):Bool

Returns true if the value is a number object, e.g. created by new Number().

See also:

staticisProxy(value:Dynamic):Bool

Returns true if the value is a Proxy instance.

See also:

staticisRegExp(value:Dynamic):Bool

Returns true if the value is a regular expression object.

See also:

staticisSet(value:Dynamic):Bool

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

See also:

staticisSetIterator(value:Dynamic):Bool

Returns true if the value is an iterator returned for a built-in Set instance.

See also:

staticisSharedArrayBuffer(value:Dynamic):Bool

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

See also:

staticisStringObject(value:Dynamic):Bool

Returns true if the value is a string object, e.g. created by new String().

See also:

staticisSymbolObject(value:Dynamic):Bool

Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.

See also:

staticisTypedArray(value:Dynamic):Bool

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

See also:

staticisUint8Array(value:Dynamic):Bool

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

See also:

staticisWeakMap(value:Dynamic):Bool

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

See also:

staticisWeakSet(value:Dynamic):Bool

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

See also: