DEV Community

Mohd Ahshan Danish
Mohd Ahshan Danish

Posted on

groupBy in JS

Object.groupBy is a recently released method in JavaScript and it is a useful function for manipulating objects and collections.

code

output

Note: We can pass a complex function as a parameter to the groupBy method for manipulation.

I will be posting tricks I have been using in my journey.
So follow me on LinkedIn.

Top comments (0)