I need to remove an object according to one of it's properties, the object is inside of an array within another array, this is my attempt which is not working:
listArray.forEach(function(entry) {
entry.forEach(function(entry) {
toDelete = $.grep(entry, function(a) {
return a = 'theValue';
});
delete toDelete;
});
});
Here is a JSFiddle: http://jsfiddle.net/p95qL/