• Searches if an element has a particular parent at any level including itself

    Parameters

    • el: HTMLElement
    • parent: Element

    Returns boolean