Some of you might be saying, “I like my loops thank you very much, it is in every language out there !”. And yes that is very true, however these make writing a whole loop for something trivial a thing of the past. So lets get on with it, its not as hard as you probably things it is.
All these methods only working on arrays. And they never modify the array you apply them to. They just return a new array.
As in finding something based on a certain set of parameters. I think you guys kinda already know what this particular method does.
I hope this helped you better understand Reduce, Map, and Filter 🙂