How to Implement JavaScript Utility Functions Using Reduce? | Hacker News Reader