ohctechv3/.svn/pristine/b1/b114e5bf76ee9299dd8277a8e7dc0e0904599180.svn-base

9 lines
318 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
/**
* Returns the closest parent element that matches a given selector.
*
* @param node the reference element
* @param selector the selector to match
* @param stopAt stop traversing when this element is found
*/
export default function closest(node: Element, selector: string, stopAt?: Element): Element | null;