The Array Iterators Cheatsheet for JavaScript

Alexandra
Level Up Coding
Published in
4 min readJul 2, 2019

--

Hi! šŸ˜„ I created some superhero examples for understanding some of the most popular built-in iterators in JS! šŸ˜„

These built-in methods help us iterate through arrays and are called ā€œiteration methodsā€ or ā€œiteratorsā€. Iterators are methods that are called on arrays to manipulate elements and return some values.

Array.forEach()

Method name: forEach
Returns: undefined

ā€”

--

--