Is there a way to transform this code snippet from other questions into ES5 format?
I am attempting to extract data from a JSON array.
var match = function(query, input) {
return input.filter(function(entry) {
return Object.entries(query).every(function(pair) {
var k = pair[0];
var v = pair[1];
return entry[k] === v;
});
});
};