Is there a way to filter an array of objects by a particular value that could be in any property?
Let\'s say I have this object:
var x = [ {
use an inner loop method to check individual property values
var val ="one"; var res = x.filter(function(item){ return Object.keys(item).some(function(prop){ return item[prop] === val; }); });