groupBy
Anjali Gurjar

Anjali Gurjar @anjali_gurjar_dff81513867

About: I am Anjali Gurjar Work as Software Developer, I have total experience 4.5 .

Joined:
Dec 3, 2024

groupBy

Publish Date: Feb 20
0 0

const people = [

{ name: 'John', age: 28 },

{ name: 'Jane', age: 28 },

{ name: 'Joe', age: 32 }
];
const grouped = people.groupBy(person => person.age);
// { 28: [John, Jane], 32: [Joe] }

Comments 0 total

    Add comment