Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "operators/map"

Index

Modules

Functions

Functions

map

  • The map method takes a mapper function and returns a new channel. Each value inserted into the channel on which this method was called will be passed to the mapper function and the result of each computation will be inserted into the returned channel.

    Type parameters

    • T

    Parameters

    • this: ChannelWrapper<T>
    • mapperFn: function

      the mapper function

        • (msg: T): T
        • Parameters

          • msg: T

          Returns T

    Returns ChannelWrapper<T>

    a fresh new channel

Generated using TypeDoc