merge operator will merge multiple observable with emit values.
import { merge, fromEvent, interval } from 'rxjs';
const click$ = fromEvent(document, 'click');
const interval$ = interval(2000);
const merge$ = merge(click$, interval$);
import { timer, interval, merge } from 'rxjs';
import { take } from 'rxjs/operators';
const t1$ = timer(1000, 1500).pipe(take(5));
const t2$ = timer(2000).pipe(take(4));
const t3$ = timer(3000, 1500).pipe(take(4));
const merge$ = merge(t1$, t2$, t3$);
Official Doc: rxjs.merge