Map, Filter, and Reduce Lab
Medium
59
4
36.5% Acceptance
In this lab, you will implement your own map, filter, and reduce functions in JavaScript. These functions are commonly used for array manipulation in JavaScript. Map, filter, and reduce functions are higher-order functions that accept a callback function as an argument and apply that function to the elements of the input array in different ways.
By the end of this lab, you should have 3 functional implementations for map
, filter
, and reduce
.
Make sure to export all the functions using ESM export.