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

    Function hasPropertyInChain

    • Function

      hasPropertyInChain

      Parameters

      • object: object

        The object to search from.

      • key: PropertyKey

        The property to look for.

      Returns boolean

      true if the property is declared anywhere in the chain.

      Check whether an object or any of its ancestors declares a property as its own. Unlike in, the search stops before Object.prototype, so built-ins such as toString do not count as a match.