Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "operators/transformators"

Index

Functions

Functions

flatMap

  • flatMap<T, K, O>(input: AsyncIterable<T>, fn: function): AsyncIterable<K>
  • Creates an Observable of every incoming value using the given Function and then yields the values of that.

    Type parameters

    • T

    • K

    • O: AsyncIterable<K>

    Parameters

    • input: AsyncIterable<T>

      Input

    • fn: function

      Function

        • (value: T): O
        • Parameters

          • value: T

          Returns O

    Returns AsyncIterable<K>

    Output

map

  • map<T, K>(input: AsyncIterable<T>, fn: function): AsyncIterable<K>
  • Maps all incoming values using the given mapping function.

    Type parameters

    • T

    • K

    Parameters

    • input: AsyncIterable<T>

      Input

    • fn: function

      Mapping function

        • (value: T): Promise<K> | K
        • Parameters

          • value: T

          Returns Promise<K> | K

    Returns AsyncIterable<K>

    Output

Generated using TypeDoc