Skip to content

Instantly share code, notes, and snippets.

@tracend
Created January 15, 2014 04:51
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 tracend/8431010 to your computer and use it in GitHub Desktop.
Save tracend/8431010 to your computer and use it in GitHub Desktop.
_.isInteger() #underscore #mixin #cc
_.mixin({
// - Check if a number is an integer
isInteger : function(s){ return parseInt(s,10)===s; }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment