Interface: Comparator<T>

"urx/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/pipe.ts:104

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.