• Search up the prototype chain and return the class that defines the given property.

    Parameters

    • obj: any

      A class instance or class definition which contains a property. If a class instance is passed the property is treated as an instance attribute. If a class constructor is passed the property is treated as a static attribute.

    • property: string

      The property name

    Returns Constructor

    The class that defines the property