goldies
    Preparing search index...

    Function $$

    • Get all elements in the document matching selector. Shorthand for querySelectorAll

      Type Parameters

      • T extends Element = Element

      Parameters

      • selector: string

        DOM selector

      • context: Element | Document = document

        Optional context element for DOM query

      Returns NodeListOf<T>

      A NodeList of all elements matching the selector

      const $elA = $$('.example')
      const $elB = $$('input[value]')