arr = new Array(); arr.push({place:"1",name:"true"}); arr.push({place:"1",name:"false"}); arr.push({place:"2",name:"false"}); arr.push({place:"2",name:"false"}); arr.push({place:"3",name:"false"}); arr.push({place:"3",name:"true"});
I'm curious about the most effective way to eliminate duplicate objects from an array. For instance, if we were to remove duplicates from arr, it would look like...
{place:"1",name:"true"}, {place:"2",name:"false"}, {place:"3",name:"true"}