flatMap in that it takes one
Observable and returns another. However, the difference is, if the original source
Observable emits a new item, then the
Observable returned by the
switchMap operator will stop what it's currently emitting and focus on the latest source
This StackOverflow answer explans it well, with both
switchMap marble diagrams next to each other.