@s-libs/rxjs-core
    Preparing search index...

    Function filterBehavior

    • Works like filter(), but always lets through the first emission for each new subscriber. This makes it suitable for subscribers that expect the observable to behave like a BehaviorSubject, where the first emission is processed synchronously during the call to subscribe().

      source:                   |-false--true--false--true--false--true-|
      filterBehavior(identity): |-false--true---------true---------true-|
      filterBehavior(identity): |-true---------true---------true-|
      filterBehavior(identity): |-false--true---------true-|

      Type Parameters

      • T

      Parameters

      • predicate: Predicate<T>

      Returns MonoTypeOperatorFunction<T>