Angular · Junior · Question 50 of 75
What does pipe(map(...), filter(...)) do on an Observable?
- ✓Correct answer: Composes operators that transform the stream and returns a new Observable
- 2Sends the stream to a server
- 3Subscribes to the Observable immediately
Explanation
Operators are pure functions: users$.pipe(map((list) => list.filter((u) => u.active))) returns a new Observable without changing the source and without subscribing.