SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this:
const data = { name : "Test", value: 12 } if("name" in data){ //Found } else { //Not found }