js to check if value exist in an object 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";
});