typeof some_var == "undefined";
But do you know how to Unset or Undefine a JS variable.
You can use the following syntax for that-
delete window.some_var;// some_var is global
delete this.some_var;// some_var is local to a function.