Trilium Backend API
    Preparing search index...
    prevAll: <T extends AnyNode>(
        this: Cheerio<T>,
        selector?: AcceptedFilters<Element>,
    ) => Cheerio<Element>

    Gets all the preceding siblings of each selected element, optionally filtered by a selector.

    Type Declaration

    $('.pear').prevAll();
    //=> [<li class="orange">Orange</li>, <li class="apple">Apple</li>]

    $('.pear').prevAll('.orange');
    //=> [<li class="orange">Orange</li>]