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 parameters#

Name
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:#

NameType
previousT
nextT

Returns: boolean

true if values should be considered equal.