Function hasPrototypeMethodFromConstructor

  • Returns true if the named method exists as a function on the constructor's prototype or on the given instance.

    This helper is useful for checking prototype-augmented methods added at runtime.

    Parameters

    • constructorFn: Function
    • name: string

    Returns boolean