Skip to content

Instantly share code, notes, and snippets.

@shadeglare
Created November 22, 2015 12:23
Show Gist options
  • Save shadeglare/67917baaf0421a970ff6 to your computer and use it in GitHub Desktop.
Save shadeglare/67917baaf0421a970ff6 to your computer and use it in GitHub Desktop.
export module Check {
export function isNull(obj: any) {
return obj === null;
}
export function isUndefined(obj: any) {
return obj === void 0;
}
export function isNullOrUndefined(obj: any) {
return isNull(obj) || isUndefined(obj);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment