Trilium Backend API
    Preparing search index...
    • Gets the elements matching the specified range (0-based position).

      Type Parameters

      • T

      Parameters

      • this: Cheerio<T>
      • Optionalstart: number

        A position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set.

      • Optionalend: number

        A position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set.

      Returns Cheerio<T>

      The elements matching the specified range.

      $('li').slice(1).eq(0).text();
      //=> 'Orange'

      $('li').slice(1, 2).length;
      //=> 1