bupkis
    Preparing search index...

    Function isConstructible

    • Returns true if the given value is a constructable function (i.e., a class).

      This works by wrapping fn in a Proxy, attaching a no-op ProxyHandler.construct trap to it, then attempting to construct the proxy via new.

      Parameters

      • fn: unknown

        Function to test

      Returns fn is types.Constructor

      Whether the function is constructable