how to check if a value exists in an object using javascript 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";
});