Question · Angular course · Module 7: RxJS
switchMap vs mergeMap
What is the main difference between switchMap and mergeMap?
Answer options
- switchMap is faster
- switchMap cancels the previous subscription, mergeMap runs in parallel
- mergeMap is for arrays, switchMap for objects
- There is no difference - they are aliases
You can check the correct answer by solving this task in the CodeWorlds game.