loading...

re: Map, Filter, & Reduce in JavaScript VIEW POST

FULL DISCUSSION
 

Ideally, you shouldn't modify the original array at all. Funtional programming encourages immutability. From a strictly functional perspective you should really only use forEach() for IO operations, like changing the DOM.

code of conduct - report abuse