Skip to main

distinctFromLast

distinctFromLast

Source Location: packages/core/src/source.ts#L2490

Signature

function distinctFromLast(): IdentityOperator
function distinctFromLast<T>(
isDifferent: (keyA: T, keyB: T, currentIndex: number) => unknown,
): Operator<T, T>
function distinctFromLast<T, K>(
isDifferent:
| ((keyA: K, keyB: K, currentIndex: number) => unknown)
| undefined,
getKey: (value: T) => K,
): Operator<T, T>