Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which RxJS operator cancels the previous inner observable when a new value arrives?

  1. A mergeMap
  2. B concatMap
  3. C switchMap
  4. D exhaustMap
Answer

switchMap

switchMap is ideal for type-ahead search because it cancels the in-flight request. It is dangerous for save operations, which should not be cancelled.

All Angular MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as