Skip to content

Instantly share code, notes, and snippets.

@vanntastic
Created March 11, 2010 18:16
Show Gist options
  • Save vanntastic/329471 to your computer and use it in GitHub Desktop.
Save vanntastic/329471 to your computer and use it in GitHub Desktop.
var is = function() {
return {
// is.not_defined(obj_or_var)
not_defined : function(obj) {
return typeof(obj) == 'undefined';
},
// is.defined(obj_or_var)
defined : function(obj) {
return typeof(obj) != "undefined";
}
};
} ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment