var names = [{id:1,name:"name1"}, {id:2,name:"name2"}, {id:3,name:"name1"}, {id:4,name:"name1"}, {id:5,name:"name2"}, {id:6,name:"name3"}]
This is my array of objects in javascript - I am looking for a way to pull out all duplicates, and individuals that have the same name property - and place them into an object of arrays.. Filtering out the duplicate objects is my primary concern. If possible to do this in jQuery that is fine.
{
[{id:1,name:"name1"},{id:3,name:"name1"}{id:4,name:"name1"}]
[{id:2,name:"name2"},{id:5,name:"name2"}]
[{id:6,name:"name3"}]
}
