Trilium Backend API
    Preparing search index...
    • Retrieve one of the elements matched by the Cheerio object, at the ith position.

      Type Parameters

      • T

      Parameters

      • this: Cheerio<T>
      • i: number

        Element to retrieve.

      Returns T

      The element at the ith position.

      $('li').get(0).tagName;
      //=> li
    • Retrieve all elements matched by the Cheerio object, as an array.

      Type Parameters

      • T

      Parameters

      Returns T[]

      All elements matched by the Cheerio object.

      $('li').get().length;
      //=> 3