Javascript “not in” operator for checking object properties

try with below code

if(!('foo' in myObj)) { ... }
or
if(myObj['foo'] === undefined) { ... }

No comments:

Post a Comment

Genuine websites to earn money.

If you are interested in PTC sites then this article is for you. I have personally tried many of the sites and found that the best thing ...