re: How The Hell Do I use Map? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Array.map is very useful yes. I think “These three functions could probably remove thousands of lines of your most confusing buggy code.“ is a bit...
 

If you want to mutate an array in place, you could also use reduce. While it's recommend to create a new array, it is technically possible to mutate an existing array with reduce.

code of conduct - report abuse