I’m new to rxjs and stuck with a simple task. Say I have one stream with array:
var array$ = Rx.Observable.just([1, 2, 3, 4, 5]);
And I have another stream of clicks:
var click$ = Rx.Observable.fromEvent(
document.getElementById('button'),
'click'
)
How do I combine them to get each element from array on each click (1 on first click, 2 on second and so on)?