Trilium Backend API
    Preparing search index...
    • Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • Optionalselector: string

        Selector for the elements to add.

      Returns Cheerio<AnyNode>

      The combined set.

      $('li').eq(0).addBack('.orange').length;
      //=> 2