Working with infinite sequences in JavaScript [ES6] | Hacker News Reader