Skip to content

Instantly share code, notes, and snippets.

@send2moran
Created February 12, 2014 13:40
Show Gist options
  • Save send2moran/8955741 to your computer and use it in GitHub Desktop.
Save send2moran/8955741 to your computer and use it in GitHub Desktop.
var globals = {
isUndefined: function (o) {
return (o === undefined);
},
isNull: function (o) {
return (o === null);
},
isNullOrUndefined: function (o) {
return (o === null) || (o === undefined);
},
isValue: function (o) {
return (o !== null) && (o !== undefined);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment