Trilium Backend API
    Preparing search index...
    • Reduce the set of matched elements to the one at the specified index. Use .eq(-i) to count backwards from the last selected element.

      Type Parameters

      • T

      Parameters

      • this: Cheerio<T>
      • i: number

        Index of the element to select.

      Returns Cheerio<T>

      The element at the ith position.

      $('li').eq(0).text();
      //=> Apple

      $('li').eq(-1).text();
      //=> Pear