jordan harrison 1208586 unsplash - RXJS FLATTENING
Angular, Reactive


From functional programming we all know map and flatmap. With reactive programming just flattening is not enough information. We have to make a decision about what to do when either observable emits the next element of completes. We have the following choices: mergeMap — deciding not to…