Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "operators/filter"

Index

Modules

Functions

Functions

filter

  • The filter method takes a predicate function and returns a new channel. Each value inserted into the channel on which this method was called will be passed to the predicate, and only those who make the function to return true will be inserted into the returned channel. The others will be discarded.

    Type parameters

    • T

    Parameters

    • this: ChannelWrapper<T>
    • predicateFn: function

      the predicate function

        • (msg: T): boolean
        • Parameters

          • msg: T

          Returns boolean

    Returns ChannelWrapper<T>

    a fresh new channel

Generated using TypeDoc