check if an object includes value

PHOTO EMBED

Wed Apr 05 2023 16:04:34 GMT+0000 (Coordinated Universal Time)

Saved by @azcraze #javascript #object #value #validate

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

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

https://codetogo.io/how-to-check-if-object-includes-value-in-javascript/