Rxjs: emit on condition: array attribute vs timer

  javascript, rxjs

an invocation to the rxjs wizards, it is possible to get a flow like the following:

stream1: 1, 2, 3, ... //this stream interval can be paused
array: [{text: "hi", time: 2}, {text: "hi", time: 10}] // static array

emit when current stream1 value === array.time

I have tried with a combination of zip, iif, but did not succeed, so I would appreciate any suggestions or help.

Source: Ask Javascript Questions

LEAVE A COMMENT