I am wondering how to check against an empty variable, here is a code snippet:
var test = {};
if (test === null){
console.log("TRUE!");
}
else{
console.log("False :(");
}
if (test === undefined){
console.log("TRUE!");
}
else{
console.log("False :(");
}
Result is False for both conditions, how can I compare against an non-initialized/empty variable?