Learn JavaScript: Iterators
Simplify loops with higher-order functions and array iterator methods: pass functions around, then use forEach, map, filter, find, findIndex, reduce, some and every, and combine them to moderate product reviews.
- Beginner level
- 1 module
- 10 lessons
- 54 tasks and questions
Syllabus
01Higher-Order Functions and IteratorsTreat functions as values and pass them to other functions. Then use the built-in array iterator methods, forEach, map, filter, find, findIndex, reduce, some and every, to replace hand-written loops with clear one-liners.10 lessons