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 ]

string

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 'value'.

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

string, number, Date, boolean, null

The value to be compared with

Comparison 1:

Available from version 1.12