higlass
Version:
HiGlass Hi-C / genomic / large data viewer
10 lines (9 loc) • 393 B
TypeScript
export default hasParent;
/**
* Test whether a DOM element is the parent of another DOM element.
*
* @param {HTMLElement} el - Potential child element.
* @param {HTMLElement} target - Target parent element which is tested to have `el` as a child.
* @return {boolean} If `true` `el` has `target` as a parent.
*/
declare function hasParent(el: HTMLElement, target: HTMLElement): boolean;