Comparators: {
aeq: ((prop1: string | number | boolean, prop2: string | number | boolean) => boolean);
gt: ((prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean) => boolean);
lt: ((prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean) => boolean);
} = ...
Type declaration
-
aeq: ((prop1: string | number | boolean, prop2: string | number | boolean) => boolean)
-
- (prop1: string | number | boolean, prop2: string | number | boolean): boolean
-
Parameters
-
prop1: string | number | boolean
-
prop2: string | number | boolean
Returns boolean
-
gt: ((prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean) => boolean)
-
- (prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean): boolean
-
Parameters
-
prop1: string | number | boolean
-
prop2: string | number | boolean
-
equal: boolean
Returns boolean
-
lt: ((prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean) => boolean)
-
- (prop1: string | number | boolean, prop2: string | number | boolean, equal: boolean): boolean
-
Parameters
-
prop1: string | number | boolean
-
prop2: string | number | boolean
-
equal: boolean
Returns boolean
Helper function for determining 'loki' abstract equality which is a little more abstract than == aeqHelper(5, '5') === true aeqHelper(5.0, '5') === true aeqHelper(new Date("1/1/2011"), new Date("1/1/2011")) === true aeqHelper({a:1}, {z:4}) === true (all objects sorted equally) aeqHelper([1, 2, 3], [1, 3]) === false aeqHelper([1, 2, 3], [1, 2, 3]) === true aeqHelper(undefined, null) === true