Contentful Personalization & Analytics
    Preparing search index...
    • Wrap a signal-like object with an Observable that suppresses duplicate emissions according to a comparator.

      Type Parameters

      • T

        Signal value type.

      Parameters

      • s: { value: T }

        Signal-like source exposing a value property.

      • isEqual: (previous: T, current: T) => boolean

        Comparator that returns true when values are equivalent.

      Returns Observable<T>

      Observable adapter that only emits distinct values.

      The first emission is always delivered. Subsequent emissions are skipped when isEqual(previous, current) returns true.