I have an array which contains many objects(all this data will come via ajax call, for example lets say there are only 3 records).
data : [{name : "a",id : "100"},{name : "b",id : "101"},{name : "c",id : "100"}];
Is there any way to loop through entire array and find objects with same id and concatenate their names and filter the array to be like this
data : [{name : "a,c",id : "100"},{name : "b",id:"101"}]
Thanks