Object destructuring and currying in functional JavaScript | Hacker News Reader