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