Jul 20, 2017 · 1 min read
Isn’t this what reduce function is for in JS? I like these videos: https://egghead.io/lessons/javascript-introducing-reduce-common-patterns. What’s the benefit of writing your own fold functions over reduce?
Good article btw, especially folding functions is an eye opener.
