Function qsr

  • Shortcut for querySelector with :scope prefix. Throws if no matching element is found.

    Type Parameters

    • T extends Element = HTMLElement

    Parameters

    • scope: ParentNode
    • selectors: string

    Returns T