const {switchMap, of} = rxjs; of("hello", "hi") .pipe(switchMap((v) => of(`${v} world`))) .subscribe((v) => document.body.insertAdjacentHTML('beforeend', `<div>${v}</div>`));
This Pen is owned by pdslly on CodePen.
See more by @pdslly on CodePen
This Pen doesn't use any external CSS resources.