Comparing version 0.0.2 to 0.0.3
@@ -6,3 +6,3 @@ (function(root) { | ||
if (typeof v === 'number') return true; | ||
var s = v.toString(); | ||
var s = (v||'').toString(); | ||
if (!s) return false; | ||
@@ -9,0 +9,0 @@ return !isNaN(s); |
{ | ||
"name": "is-numeric", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Predicate that returns true for numeric values.", | ||
@@ -5,0 +5,0 @@ "main": "is-numeric.js", |
@@ -52,2 +52,4 @@ # is-numeric | ||
console.log(isNumeric({})); // false | ||
console.log(isNumeric(undefined)); // false | ||
console.log(isNumeric(null)); // false | ||
``` | ||
@@ -54,0 +56,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
4332
65