Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a new until ‘isInteger’

  • Loading branch information...
commit 66232a8f37008e942a9db04e88ce024a638a4882 1 parent f3d9fa5
@Baggz authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/utils/isInteger.js
View
8 src/utils/isInteger.js
@@ -0,0 +1,8 @@
+/**
+ * IsInteger
+ *
+ * @param {object} input
+ */
+var isInteger = function(input) {
+ return isNumber(input) && input % 1 === 0;
+};
Please sign in to comment.
Something went wrong with that request. Please try again.