deno.com

namespace types

Functions #

f
types.isAnyArrayBuffer

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

    f
    types.isArgumentsObject

    Returns true if the value is an arguments object.

      f
      types.isArrayBuffer

      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.

        f
        types.isArrayBufferView

        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().

          f
          types.isAsyncFunction

          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.

            f
            types.isBigInt64Array

            Returns true if the value is a BigInt64Array instance.

              f
              types.isBigIntObject

              Returns true if the value is a BigInt object, e.g. created by Object(BigInt(123)).

                f
                types.isBigUint64Array

                Returns true if the value is a BigUint64Array instance.

                  f
                  types.isBooleanObject

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

                    f
                    types.isBoxedPrimitive

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

                      f
                      types.isCryptoKey

                      Returns true if value is a CryptoKey, false otherwise.

                        f
                        types.isDataView

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

                          f
                          types.isDate

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

                            f
                            types.isExternal

                            Returns true if the value is a native External value.

                              f
                              types.isFloat32Array

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

                                f
                                types.isFloat64Array

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

                                  f
                                  types.isGeneratorFunction

                                  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.

                                    f
                                    types.isGeneratorObject

                                    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.

                                      f
                                      types.isInt16Array

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

                                        f
                                        types.isInt32Array

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

                                          f
                                          types.isInt8Array

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

                                            f
                                            types.isKeyObject

                                            Returns true if value is a KeyObject, false otherwise.

                                              f
                                              types.isMap

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

                                                f
                                                types.isMapIterator

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

                                                  f
                                                  types.isModuleNamespaceObject

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

                                                    f
                                                    types.isNativeError

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

                                                      f
                                                      types.isNumberObject

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

                                                        f
                                                        types.isPromise

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

                                                          f
                                                          types.isProxy

                                                          Returns true if the value is a Proxy instance.

                                                            f
                                                            types.isRegExp

                                                            Returns true if the value is a regular expression object.

                                                              f
                                                              types.isSet

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

                                                                f
                                                                types.isSetIterator

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

                                                                  f
                                                                  types.isSharedArrayBuffer

                                                                  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.

                                                                    f
                                                                    types.isStringObject

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

                                                                      f
                                                                      types.isSymbolObject

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

                                                                        f
                                                                        types.isTypedArray

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

                                                                          f
                                                                          types.isUint16Array

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

                                                                            f
                                                                            types.isUint32Array

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

                                                                              f
                                                                              types.isUint8Array

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

                                                                                f
                                                                                types.isUint8ClampedArray

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

                                                                                  f
                                                                                  types.isWeakMap

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

                                                                                    f
                                                                                    types.isWeakSet

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