bstrees
    Preparing search index...

    Interface RangeOptions<T>

    Bounds for SortedTree.range. A missing (or undefined) bound leaves that side of the range open.

    interface RangeOptions<T> {
        gt?: T;
        gte?: T;
        lt?: T;
        lte?: T;
        reverse?: boolean;
    }

    Type Parameters

    • T
    Index
    gt?: T

    Only values greater than this one. Cannot be combined with gte.

    gte?: T

    Only values greater than or equal to this one. Cannot be combined with gt.

    lt?: T

    Only values less than this one. Cannot be combined with lte.

    lte?: T

    Only values less than or equal to this one. Cannot be combined with lt.

    reverse?: boolean

    Iterate from the largest value to the smallest one. Defaults to false.