Comparing version 1.1.0 to 1.1.1
@@ -14,3 +14,3 @@ /** | ||
function isNumber (val) { | ||
return typeof val === 'number' || val instanceof Number; | ||
return !isNaN(val) && (typeof val === 'number' || val instanceof Number); | ||
} |
{ | ||
"name": "101", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "common javascript utils that can be required selectively that assume es5+", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -460,3 +460,3 @@ ![101](http://i.imgur.com/MFrmMt6.png) | ||
Functional version of val typeof 'number' | ||
Functional version of val typeof 'number'. | ||
@@ -466,3 +466,3 @@ ```js | ||
['foo', 'bar', 1].map(isNumber); // [false, false, true] | ||
['foo', NaN, 1].map(isNumber); // [false, false, true] | ||
``` | ||
@@ -469,0 +469,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
54954