#
Interface: Comparator<T>"urx/src/pipe".Comparator
A function which determines if two values are equal. Implement custom comparators when distinctUntilChanged needs to work on non-primitive objects.
#
Type parametersName |
---|
T |
#
Hierarchy- Comparator
#
Callableâ–¸ (previous
: T, next
: T): boolean
Defined in urx/src/pipe.ts:105
A function which determines if two values are equal. Implement custom comparators when distinctUntilChanged needs to work on non-primitive objects.
#
Parameters:Name | Type |
---|---|
previous | T |
next | T |
Returns: boolean
true if values should be considered equal.