Forum Discussion
rraghvani
2 years agoChampion Level 3
Hopefully, I understand what you mean now. Try this,
function CheckProperty()
{
const Name = {
Firstname: "SmartBear"
}
Log.Message(Name.Firstname);
Log.Message(Name.hasOwnProperty("Firstname")); // true
Log.Message(Name.hasOwnProperty("Surname")); // false
}
Use "hasOwnProperty()"
Related Content
- 10 months agoIrinaManea
- 4 years agoEtrahkad
- 3 years agoLRuoc
- 5 years agoDKumar04
Recent Discussions
- 2 days agoGane195