Comparing version 0.2.6 to 0.2.7
@@ -425,3 +425,3 @@ | ||
is.decimal = function (value) { | ||
return is.number(value) && !isActualNaN(value) && value % 1 !== 0; | ||
return is.number(value) && !isActualNaN(value) && !is.infinite(value) && value % 1 !== 0; | ||
}; | ||
@@ -428,0 +428,0 @@ |
@@ -26,3 +26,3 @@ { | ||
"main": "index.js", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"scripts": { | ||
@@ -32,4 +32,4 @@ "test": "node test/index.js" | ||
"devDependencies": { | ||
"tape": "~1.0.1", | ||
"foreach": "~2.0.3" | ||
"tape": "~2.3.2", | ||
"foreach": "~2.0.4" | ||
}, | ||
@@ -36,0 +36,0 @@ "testling": { |
@@ -244,2 +244,3 @@ var test = require('tape'); | ||
t.notOk(is.decimal(NaN), 'NaN is not decimal'); | ||
t.notOk(is.decimal(Infinity), 'Infinity is not decimal'); | ||
t.end(); | ||
@@ -246,0 +247,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41102
1038