Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Chaining Array Methods 3:37
- Method Chaining 1 objective
- Working with Objects in Arrays 7:40
- Working with Objects 1 objective
- Combining filter() and map() 4:13
- Combining filter() and map() 1 objective
- Combining filter() and reduce() 4:42
- Combining filter() and reduce() 1 objective
- Nested Data and Additional Exploration 7:25
- Array Flattening 1 objective
- Nested Data 1 objective
Well done!
You have completed JavaScript Array Iteration Methods!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
You can combine filter() and map() to clean an array of unwanted values before transforming the leftover items. Let's work with some examples in this video.
Snippets from the Video
const userNames = ['Samir', 'Angela', 'Beatrice', 'Shaniqua', 'Marvin', 'Sean'];
// Result: [{name: 'Samir'}, {name: 'Shaniqua'}, {name:'Sean'}];
const users = [
{name: 'Samir', age: 27},
{name: 'Angela', age: 33},
{name: 'Beatrice', age: 42},
{name: 'Shaniqua', age: 30},
{name: 'Marvin', age: 23},
{name: 'Sean', age: 47}
];
// Result: ['Angela', 'Beatrice', 'Shaniqua', 'Sean'];
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
James Reich
Front End Web Development Techdegree Graduate 14,854 Points1 Answer
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Sara Masek
Front End Web Development Techdegree Student 11,513 Points3 Answers
-
Frank keane
8,074 PointsArrow functions don't always use curly braces though.
Posted by Frank keaneFrank keane
8,074 Points2 Answers
-
Frank keane
8,074 Points0 Answers
-
Gremyko Coleman
9,756 Points1 Answer
-
Rick S
11,273 Points5 Answers
-
Jordan Kittle
Full Stack JavaScript Techdegree Graduate 20,148 Points1 Answer
-
Anton Paluykh
8,994 Points1 Answer
-
PLUS
Begana Choi
Courses Plus Student 13,126 Points1 Answer
-
Xavi Guasch
10,882 Points6 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up