Answers for "search if value exists in object javascript"

1

search if value exists in object javascript

var exists = Object.keys(obj).some(function(k) {
    return obj[k] === "test1";
});
Posted by: Guest on May-06-2021

Code answers related to "search if value exists in object javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language