var matches = $.grep($.trolley, function(element){ 
    if ((element.id == grocery.id) && (element.dimensions == grocery.dimensions)) {
        console.log('t'); 
    } else { 
        console.log('f'); 
    } 
});
So I have say 3 items. id 1 dimensions 4, id 2 dimensions 8, id 2 dimensions 8
I want to find the item that isn't in the array, but as soon as it matches an item in the array that already has that id, it returns a match... Even though the dimensions differ :(
 
    