• Gets the closest parent matching the selector (can by itself)

    Parameters

    • el: HTMLElement
    • selector: string

    Returns HTMLElement | null