mapTo operator changes emit value to another specific value
import { fromEvent } from 'rxjs'; import { mapTo } from 'rxjs/operators'; const click$ = fromEvent(document, 'click'); const source$ = click$.pipe(mapTo('Hi'));
Official Doc: rxjs.mapTo