Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search if value exists in object javascript

var exists = Object.keys(obj).some(function(k) {
    return obj[k] === "test1";
});
 
PREVIOUS NEXT
Tagged: #search #exists #object #javascript
ADD COMMENT
Topic
Name
1+3 =