Function elemFromSelector

  • Return a HtmlElement from selector or cast an existing element.

    Type Parameters

    • T = HTMLElement

    Parameters

    • obj: string | T

    Returns T | null