gradum-kit - v0.1.0
    Preparing search index...

    Function getFirstPrototypeInChainWith

    • Function

      getFirstPrototypeInChainWith

      Parameters

      • object: object

        The object to search from.

      • key: PropertyKey

        The property to look for.

      Returns any

      The nearest prototype declaring it, or undefined if none does.

      Find the nearest ancestor prototype that declares a property, skipping the object itself. Use it to locate which class in a hierarchy a member came from.