Avoid Swallowing Values

Learn how to avoid swallowing values while writing functions for RxJS operator functions and how to handle time-based events with RxJS Observables.

How to prevent value loss

When writing functions that are used by the RxJS operator functions, we need to be careful that we continue to return values and do not swallow them unexpectedly.

Consider the following code:

Get hands-on with 1200+ tech skills courses.