From the course: Angular: Testing and Debugging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Filter the array of users by locationId

Challenge: Filter the array of users by locationId - Angular Tutorial

From the course: Angular: Testing and Debugging

Start my 1-month free trial

Challenge: Filter the array of users by locationId

(upbeat music) - [Instructor] Here's a challenge for you, make a new pipe that filters the array of users based on one or more location IDs and returns a new array with only those users. Keep in mind that for this challenge you're modifying the array of users as a whole and not the individual user objects. You can take a look at the users.TS file for a better idea of how the user's array is organized. Good luck.

Contents