Curry function in pure JavaScript | Hacker News Reader