In reactive programming just flatMap is not enough information. We have to say what to do when either the observables emit the next element or complete.
Dec 21, 2018 ... Here is an example: const socialMediaTrend$ = from(['Facebook', 'Instagram']) .
pipe( tap(media => console.log(`*** "${media}" is hot now ...