You are hereA JavaScript MapReduce One-Liner

A JavaScript MapReduce One-Liner

By www - Posted on 01 October 2012

After my post on "Word frequency using MapReduce in Python," I got my paws dirty with some silly Javascript. Once I reduced a whole
chunk of code, it turned out to be a simple one-liner in JavaScript. A linear implementation of MapReduce, but it was fun and indeed will be useful if on node.js.
Enough talking! Below is the one liner that will give the word frequency in JSON format.