Detecting an undefined object property in JavaScript
- by Matt Sheppard
What's the best way of checking if an object property in JavaScript is undefined?
Sorry, I initially said variable rather than object property. I believe the same == undefined approach doesn't work there.