I have this array of objects:
[{'id':1, 'name':'name1', 'src':'1'},
 {'id':1, 'name':'name1', 'src':'2'},  
 {'id':2, 'name':'name2', 'src':'1'},
 {'id':2, 'name':'name2', 'src':'2'}]
And i want to group them by the src in an array like so:
[{'id':1, 'name':'name1', 'src':['1','2']},
 {'id':2, 'name':'name2', 'src':['1','2']}]
Please help i am stuck on that for a good while now, sorry for the novice question.
 
     
    