Functional Programming in TypeScript: Recursion | Hacker News Reader