Permalink
Browse files

Add a new until ‘isInteger’

  • Loading branch information...
1 parent f3d9fa5 commit 66232a8f37008e942a9db04e88ce024a638a4882 @Baggz committed Mar 8, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 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.