Using GroupBy on an array of objects in JavaScript | Hacker News Reader