Created
January 15, 2014 04:51
-
-
Save tracend/8431010 to your computer and use it in GitHub Desktop.
_.isInteger() #underscore #mixin #cc
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
_.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