I have an observable with array. I need to make some operation on each element in the array on mouse click event. I started with something like this:
merge([
this.clicks,
this.array$
]).pipe(
tap((value) => console.log(value))
).subscribe();
But how can i iterate the elements, so in each click it will print the next element in the array?