• Determines whether an argument is an instance of a constructor, including subclasses. This is done by first just checking instanceof, and then comparing the string names of the constructors if that fails.

    Type Parameters

    • C extends (new (...args) => any)

    Parameters

    • arg: any
    • constructor: C

    Returns arg is InstanceType<C>