Skip to content

Instantly share code, notes, and snippets.

@minitech
Created August 11, 2012 16:25
Show Gist options
  • Save minitech/3325581 to your computer and use it in GitHub Desktop.
Save minitech/3325581 to your computer and use it in GitHub Desktop.
// Some code I found from 2009 :)
function isNullOrUndefined(o) {
if(o === null) {
return true;
}
if(typeof o === "undefined") {
return true;
}
if(o === undefined) {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment