4 ms·
Author here: I wrote this article mainly as a note to self that I could refer to in the future and as an exercise to help me learn the concept and force me to s
by zabana 9y ago
Author here: I wrote this article mainly as a note to self that I could refer to in the future and as an exercise to help me learn the concept and force me to structure my thoughts into a coherent blog post. I thought I'd share it for those of us who are more intermediate and would like to pick up a few tricks along the way. Thank you all for the positive (and not so positive feedback)
- dberhane 9y agoReading your blog allowed me to better understand the reduce function for the first time and I want to thank you for that.
- sAbakumoff 9y agoshameless plug, here is my article about ES5 array methods that looks at them in depth : https://medium.com/@sAbakumoff/a-deeper-dive-into-javascript-arrays-390f324f7482 https://medium.com/@sAbakumoff/a-deeper-dive-into-javascript...
- lostcolony 9y agoFor learning the concepts, something that I found rather enlightening was writing map/filter/every (and I guess, some or any, and really just about any function that operates on a collection), -with- a reduce. Then, write your own recursive implementation of reduce. I found it really helpful in grokking what these things did, and more broadly improved my understanding and use of functional composition