I have an object in JavaScript:
var obj = { "a": "test1", "b": "test2" }
How do I check that te
For a one-liner, I would say:
exist = Object.values(obj).includes("test1"); console.log(exist);