Utilizing Array.prototype.reduce to replicate common Array methods in JavaScript
gist.github.com