Function qs

  • Shortcut for querySelector with :scope prefix.

    Type Parameters

    • T extends Element = HTMLElement

    Parameters

    • scope: ParentNode
    • selectors: string

    Returns null | T