@bodil/dom
    Preparing search index...

    Function findAncestor

    • Find the first ancestor of the given child element matching the provided predicate function, walking up through shadow root boundaries.

      Type Parameters

      Parameters

      Returns T | undefined

    • Find the first ancestor of the given child element matching the provided predicate function, walking up through shadow root boundaries.

      Parameters

      Returns Element | undefined