Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/distinct"

Index

Functions

Functions

distinct

  • Returns a Transform where all subsequent repetitions of the same item are filtered out.

    Type parameters

    • T

      Type of items emitted by the observable.

    Parameters

    • Default value f: function = (a, b) => a === b

      Function to check if two items are the same. By default strict equality is used.

        • (a: T, b: T): boolean
        • Parameters

          • a: T
          • b: T

          Returns boolean

    Returns Transform<T>

    Transform that emits some items from the original observable.

Generated using TypeDoc