@arcmantle/library
    Preparing search index...

    Function traverseDomUp

    • Traverse the dom upwards from the fromElement to the root element.

      Type Parameters

      • T

      Parameters

      • fromElement: DOMPrimitive

        The element from which the traversal starts

      • func: (node: DOMPrimitive, stop: (value?: T) => void) => void

        The function to execute on each element. A stop function is passed as the second argument to stop the traversal.

      Returns undefined | T