Published a blog post
Array.prototype.groupBy to the rescue!
https://www.charpeni.com/blog/array-prototype-group-by-to-the-rescue