I have a javascript object array like
var objArr = [Object{key="1", value="a"}, Object{key="2", value="b"}, ...]
Do we have any Jquery method find the object and delete it. I know using $.each
$.each(objArr, function(index, obj) {
})
But do we have any easy and efficient solution for this?
Without jQuery, by simply using the filter function of javascript :
(note that the MDN page offers tips for the compatibility with very old browsers)