Monthly Archive:: November 2016
JavaScript Under the Hood – Building Our Own forEach and Map Functions
Written on November 18, 2016
in Programming
Iterating over arrays in JavaScript – so useful, so seemingly simple, and so easy to misunderstand. What’s actually going on in forEach? How does Map work? What do Reduce and Filter do? Every array comes with the forEach, Map, Reduce, Filter, etc. methods built on the prototype. It’s easy to take these functions