mogami-stream - v0.2.0
    Preparing search index...

    Function filter

    • Emits only values for which predicate returns true.

      Predicates run sequentially and may be asynchronous. Synchronous type guard predicates narrow the output stream type.

      Type Parameters

      • T
      • S

      Parameters

      Returns Operator<T, S>

    • Emits only values for which predicate returns true.

      Predicates run sequentially and may be asynchronous. Synchronous type guard predicates narrow the output stream type.

      Type Parameters

      • T

      Parameters

      • predicate: (value: T, context: OperatorContext) => boolean | PromiseLike<boolean>

      Returns Operator<T, T>