Utilizing Array.prototype.reduce to replicate common Array methods in JavaScript | Dark Hacker News