Snippets Collections
const person = {
  first_name: "Sam",
  last_name: "Bradley"
};

Object.values(person).includes("Bradley");
star

Wed Apr 05 2023 16:04:34 GMT+0000 (Coordinated Universal Time) https://codetogo.io/how-to-check-if-object-includes-value-in-javascript/

#javascript #object #value #validate

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension