which is the right thing to do?
if (myObj['key']==undefined)
or
if (myObj['key']==null)
or
if (myObj['key'])
Exact duplicate of: http://stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-an-attribute-in-javascript
which is the right thing to do?
if (myObj['key']==undefined)
or
if (myObj['key']==null)
or
if (myObj['key'])
Exact duplicate of: http://stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-an-attribute-in-javascript