Possible Duplicate:
variable === undefined vs. typeof variable === “undefined”
Assuming that undefined
has not been tampered with, are the following equivalent?
typeof a === 'undefined'
and
a === undefined
?
[The reason I ask is because the author of Parsley.js seems to love writing 'undefined' !== typeof someExpression
.]