javascript object check if value exists 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";
});