Trilium Backend API
    Preparing search index...
    • Check to see if any of the matched elements have the given className.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • className: string

        Name of the class.

      Returns boolean

      Indicates if an element has the given className.

      $('.pear').hasClass('pear');
      //=> true

      $('apple').hasClass('fruit');
      //=> false

      $('li').hasClass('pear');
      //=> true