Created
January 2, 2017 23:15
-
-
Save dooman87/a61aba62bcea497b4722ece7f24017d0 to your computer and use it in GitHub Desktop.
Used defined type guards.
This file contains 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 function isNumber(n: any): n is number { | |
return typeof n === "number"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment