Angular · Junior · Question 50 of 75

What does pipe(map(...), filter(...)) do on an Observable?

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.

Further reading

Problem with a question

Angular · Junior · question 50

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz