find value exist in any object js code example
Example: search if value exists in object javascript
var exists = Object.keys(obj).some(function(k) {
return obj[k] === "test1";
});
var exists = Object.keys(obj).some(function(k) {
return obj[k] === "test1";
});