Class CellStream<TItem, TKey>Abstract

Common base class for collections of cells that can be mapped and filtered.

Type Parameters

  • TItem
  • TKey

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Create a stream that only includes items from this stream for which the given predicate function returns true.

    Parameters

    • f: ((item) => boolean)

      The predicate function to apply to items.

        • (item): boolean
        • Parameters

          Returns boolean

    Returns CellStream<TItem, TKey>

    A new stream.

  • Observe this iterable. Upon attaching an observer insert is called for each item currently contained in the underlying collection.

    Parameters

    • insert: ((index, item, key) => void)

      An observer that is called whenever an item is inserted.

        • (index, item, key): void
        • Parameters

          Returns void

    • remove: ((index) => void)

      An observer that is called whenever an item is removed.

        • (index): void
        • Parameters

          • index: number

          Returns void

    Returns (() => void)

    A function that should be called to detach the observer functions.

      • (): void
      • Returns void