Comparing version 0.0.4 to 0.0.5
@@ -6,3 +6,3 @@ (function(root) { | ||
if (typeof v === 'number' && !isNaN(v)) return true; | ||
v = (v||'').toString(); | ||
v = (v||'').toString().trim(); | ||
if (!v) return false; | ||
@@ -9,0 +9,0 @@ return !isNaN(v); |
{ | ||
"name": "is-numeric", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Predicate that returns true for numeric values.", | ||
@@ -5,0 +5,0 @@ "main": "is-numeric.js", |
@@ -54,2 +54,3 @@ # is-numeric | ||
console.log(isNumeric(null)); // false | ||
console.log(isNumeric(NaN)); // false | ||
``` | ||
@@ -56,0 +57,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
4386
66