Created
November 22, 2015 12:23
-
-
Save shadeglare/67917baaf0421a970ff6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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