Beta (still building)

mapTo

mapTo operator changes emit value to another specific value

Example: MapTo operator normal use

import { fromEvent } from 'rxjs';
import { mapTo } from 'rxjs/operators';

const click$ = fromEvent(document, 'click');
const source$ = click$.pipe(mapTo('Hi'));

Official Doc: rxjs.mapTo