A function which determines if two values are equal. Implement custom comparators when the distinctUntilChanged operator needs to work on non-primitive objects.
Signature:
export interface Comparator<T = any>