How to check undefined javascript value in facebook?
- by Murvinlai
In normal javascript, I can check either
if (i == undefined)
or
if (i === undefined)
or the "typeof"
however, within facebook, it will have the api_key append as the prefix in undefined.
i.e. it will become
if (a12345_i == a12345_undefined)
which is NOT undefined
so, what can I do to find out the variable is undefined or not?