Skip to content

Chapter 5: n-Series Composition Functions

The n-series composition functions defined in timeline.ts are as follows.

  • nCombineLatestWith: Combines two nullable Timelines by applying a binary operation function only if both values are not null.
  • nAnyOf: Computes the logical OR of multiple nullable boolean Timelines.
  • nAllOf: Computes the logical AND of multiple nullable boolean Timelines.
  • nSumOf: Computes the sum of multiple nullable number Timelines.
  • nListOf: Combines multiple nullable Timelines into a single nullable Timeline holding an array of their values.
  • nCombineLatest: Combines an arbitrary number of nullable Timelines by applying an N-ary composition function only if all values are not null.