Comparison
[ Interface ]
export interface Comparison {
path?: string;
comparator: '==' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'contains not' | '== [ignore case]' | '!= [ignore case]' | 'contains [ignore case]' | 'contains not [ignore case]';
value: string | number | Date | boolean | null;
};
Describes a comparison operation.
Properties
Name | Type | Description |
---|---|---|
path [ optional ] | If the array to be filtered contains objects, this property defines which path within the object should be compared with the value in the property If no path is specified, the value itself is compared. This is the case if the array consists only of simple data types, for example. | |
comparator | '==', '!=', '<', '>', '<=', '>=', 'contains', 'contains not', '== [ignore case]', '!= [ignore case]', 'contains [ignore case]', 'contains not [ignore case]' | The operator to be used for the comparison. |
value | The value to be compared with |
Available from version 1.12 |