Function isConstructor

  • Is the subject a constructor function.

    Parameters

    • subject: unknown

    Returns subject is AnyConstructor

    Deprecated

    this is not a failsafe test, it will return true for any function that can be called with new.

    If the subject is an arrow function, it can still return true after compilation.

    Thus this function is not safe to use.

Generated using TypeDoc