Skip to content

Instantly share code, notes, and snippets.

@dooman87
Created January 2, 2017 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dooman87/a61aba62bcea497b4722ece7f24017d0 to your computer and use it in GitHub Desktop.
Save dooman87/a61aba62bcea497b4722ece7f24017d0 to your computer and use it in GitHub Desktop.
Used defined type guards.
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