111
rated 0 times
[
114]
[
3]
/ answers: 1 / hits: 31581
/ 13 Years ago, mon, august 29, 2011, 12:00:00
Could somebody explain to me the difference between if(obj.x == undefined)
and if(typeof obj.x == 'undefined')
In some context the first one works fine, but in other I need to use the second way.
Questions
1 - What is the difference between the two condition?
2 - Is there a best practice?
More From » javascript