SyntaxFix
Write A Post
Hire A Developer
Questions
For a one-liner, I would say:
exist = Object.values(obj).includes("test1"); console.log(exist);