Skip to content

RANGE_OPERATORS

const RANGE_OPERATORS: readonly ["between", "notBetween"];

Defined in: filters/operators.ts:48

The range operators — between / notBetween take from + to (the number kind only). compileFilters lowers them to gte AND lte / lt OR gt, never SQL BETWEEN.

Render two inputs (from/to) for a range operator

import { RANGE_OPERATORS } from "@xtandard/lib/filters";
RANGE_OPERATORS; // → ["between", "notBetween"]
(RANGE_OPERATORS as readonly string[]).includes("between"); // → true