// RxJS v6+import { of, merge } from'rxjs';import { mapTo, delay } from'rxjs/operators';//emit one itemconstexample=of(null);//delay output of each by an extra secondconstmessage=merge(example.pipe(mapTo('Hello')),example.pipe(mapTo('World!'),delay(1000)),example.pipe(mapTo('Goodbye'),delay(2000)),example.pipe(mapTo('World!'),delay(3000)));//output: 'Hello'...'World!'...'Goodbye'...'World!'constsubscribe=message.subscribe(val =>console.log(val));