All I need to do is compare two arrays of objects and remove items in the second one that have the same property value. For example:
var a = [{\'name\':\'bob
Try this:
You are starting loop from the 0.
0
for (var i = 0, len = a.length; i < len; i++) { for (var j = 0, len = b.length; j < len-1; j++) { if (a[i].name == b[j].name) { b.splice(j, 1); } } }
Fiddle Demo