Skip to content

OPERATOR_CODE

const OPERATOR_CODE: Record<AnyOperator, string>;

Defined in: filters/url.ts:84

Model operator → short URL code (the inverse is operatorFromCode). The compact codec writes these into each leaf’s o key.

import { OPERATOR_CODE } from "@xtandard/lib/filters";
OPERATOR_CODE.contains; // → "ct"
OPERATOR_CODE.inArray; // → "iA"
OPERATOR_CODE.gte; // → "ge"