Skip to content

Commit

Permalink
Add a new until ‘isInteger’
Browse files Browse the repository at this point in the history
  • Loading branch information
František Hába committed Mar 8, 2012
1 parent f3d9fa5 commit 66232a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/isInteger.js
@@ -0,0 +1,8 @@
/**
* IsInteger
*
* @param {object} input
*/
var isInteger = function(input) {
return isNumber(input) && input % 1 === 0;
};

0 comments on commit 66232a8

Please sign in to comment.