And of course I want to do this code-wise. It\'s not that there isn\'t alternative to this problem I\'m facing, just curious.
In addition to the above, you can use following way:
if(obj.myProperty !== undefined) { }