Too Long; Didn't Read
You've probably used map, reduce, and other functional methods in Javascript before, but there are a few use cases you probably haven’t thought about much or used before. In this post, I’d like to go over these methods (and a few other surprises!) to show what’s possible in Javascript. The Hacker Noon codebase makes heavy use of map, filter, and reduce. In a simple example, we get the word count from both 2.0 and archived (1.0) stories, then sum the resulting array using reduce.