Skip to main

distinctFromLast

distinctFromLast

Signature - source.ts#L2584

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>