Grouping data in JavaScript made easy with Object.groupBy()
Grouping data in JavaScript used to be a pain. We had to iterate over the objects and push them into separate arrays. But now, thanks to the new Object.groupBy() method, grouping data is a breeze!
Object.groupBy
Object.groupBy()` is a static method t...
2mindev.hashnode.dev2 min read