Package-level declarations

Functions

Link copied to clipboard
inline fun isAnyArrayBuffer(value: Any?): Boolean
Link copied to clipboard
external fun isAnyArrayBufferRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isArgumentsObject(value: Any?): Boolean
Link copied to clipboard
external fun isArgumentsObjectRaw(value: Any?): Boolean

Returns true if the value is an arguments object.

Link copied to clipboard
inline fun isArrayBuffer(value: Any?): Boolean
Link copied to clipboard
external fun isArrayBufferRaw(value: Any?): Boolean

Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

Link copied to clipboard
inline fun isArrayBufferView(value: Any?): Boolean
Link copied to clipboard
external fun isArrayBufferViewRaw(value: Any?): Boolean

Returns true if the value is an instance of one of the ArrayBuffer views, such as typed array objects or DataView. Equivalent to ArrayBuffer.isView().

Link copied to clipboard
external fun isAsyncFunction(value: Any?): Boolean

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 if a transpilation tool was used.

Link copied to clipboard
inline fun isBigInt64Array(value: Any?): Boolean
Link copied to clipboard
external fun isBigInt64ArrayRaw(value: Any?): Boolean

Returns true if the value is a BigInt64Array instance.

Link copied to clipboard
inline fun isBigUint64Array(value: Any?): Boolean
Link copied to clipboard
external fun isBigUint64ArrayRaw(value: Any?): Boolean

Returns true if the value is a BigUint64Array instance.

Link copied to clipboard
inline fun isBooleanObject(value: Any?): Boolean
Link copied to clipboard
external fun isBooleanObjectRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isBoxedPrimitive(value: Any?): Boolean
Link copied to clipboard
external fun isBoxedPrimitiveRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isCryptoKey(value: Any?): Boolean
Link copied to clipboard
external fun isCryptoKeyRaw(value: Any?): Boolean

Returns true if value is a CryptoKey, false otherwise.

Link copied to clipboard
inline fun isDataView(value: Any?): Boolean
Link copied to clipboard
external fun isDataViewRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isDate(value: Any?): Boolean
Link copied to clipboard
external fun isDateRaw(value: Any?): Boolean

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

Link copied to clipboard
external fun isExternal(value: Any?): Boolean

Returns true if the value is a native External value.

Link copied to clipboard
inline fun isFloat32Array(value: Any?): Boolean
Link copied to clipboard
external fun isFloat32ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isFloat64Array(value: Any?): Boolean
Link copied to clipboard
external fun isFloat64ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isGeneratorFunction(value: Any?): Boolean
Link copied to clipboard
external fun isGeneratorFunctionRaw(value: Any?): Boolean

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 if a transpilation tool was used.

Link copied to clipboard
inline fun isGeneratorObject(value: Any?): Boolean
Link copied to clipboard
external fun isGeneratorObjectRaw(value: Any?): Boolean

Returns true if the value is a generator object as returned from a built-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 if a transpilation tool was used.

Link copied to clipboard
inline fun isInt16Array(value: Any?): Boolean
Link copied to clipboard
external fun isInt16ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isInt32Array(value: Any?): Boolean
Link copied to clipboard
external fun isInt32ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isInt8Array(value: Any?): Boolean
Link copied to clipboard
external fun isInt8ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isKeyObject(value: Any?): Boolean
Link copied to clipboard
external fun isKeyObjectRaw(value: Any?): Boolean

Returns true if value is a KeyObject, false otherwise.

Link copied to clipboard
inline fun isMap(target: Any?): Boolean
Link copied to clipboard
external fun isMapIterator(value: Any?): Boolean

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

Link copied to clipboard
external fun isMapRaw(target: Any?): Boolean

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

Link copied to clipboard
external fun isModuleNamespaceObject(value: Any?): Boolean

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

Link copied to clipboard
inline fun isNativeError(value: Any?): Boolean
Link copied to clipboard
external fun isNativeErrorRaw(value: Any?): Boolean

Returns true if the value was returned by the constructor of a built-in Error type.

Link copied to clipboard
inline fun isNumberObject(value: Any?): Boolean
Link copied to clipboard
external fun isNumberObjectRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isPromise(value: Any?): Boolean
Link copied to clipboard
external fun isPromiseRaw(value: Any?): Boolean

Returns true if the value is a built-in Promise.

Link copied to clipboard
external fun isProxy(value: Any?): Boolean

Returns true if the value is a Proxy instance.

Link copied to clipboard
inline fun isRegExp(value: Any?): Boolean
Link copied to clipboard
external fun isRegExpRaw(value: Any?): Boolean

Returns true if the value is a regular expression object.

Link copied to clipboard
inline fun isSet(target: Any?): Boolean
Link copied to clipboard
external fun isSetIterator(value: Any?): Boolean

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

Link copied to clipboard
external fun isSetRaw(target: Any?): Boolean

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

Link copied to clipboard
inline fun isSharedArrayBuffer(value: Any?): Boolean
Link copied to clipboard
external fun isSharedArrayBufferRaw(value: Any?): Boolean

Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances. Usually, it is desirable to test for both; See util.types.isAnyArrayBuffer() for that.

Link copied to clipboard
inline fun isStringObject(value: Any?): Boolean
Link copied to clipboard
external fun isStringObjectRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isSymbolObject(value: Any?): Boolean
Link copied to clipboard
external fun isSymbolObjectRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isTypedArray(value: Any?): Boolean
Link copied to clipboard
external fun isTypedArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isUint16Array(value: Any?): Boolean
Link copied to clipboard
external fun isUint16ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isUint32Array(value: Any?): Boolean
Link copied to clipboard
external fun isUint32ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isUint8Array(value: Any?): Boolean
Link copied to clipboard
external fun isUint8ArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isUint8ClampedArray(value: Any?): Boolean
Link copied to clipboard
external fun isUint8ClampedArrayRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isWeakMap(value: Any?): Boolean
Link copied to clipboard
external fun isWeakMapRaw(value: Any?): Boolean

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

Link copied to clipboard
inline fun isWeakSet(value: Any?): Boolean
Link copied to clipboard
external fun isWeakSetRaw(value: Any?): Boolean

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