Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/filter"

Index

Functions

Functions

filter

  • Returns a Transform that emits all items for which f returns true.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    • f: function

      Function called with each emitted item. If it returns true, the item is emitted. Otherwise the item is discarded.

        • (x: T): boolean
        • Parameters

          • x: T

          Returns boolean

    Returns Transform<T>

    Transform that emits some items from the original observable.

Generated using TypeDoc