Comparing version 0.1.1 to 0.1.2
@@ -31,2 +31,5 @@ 'use strict'; | ||
} | ||
if (typeof input === 'string' && !input.length) { | ||
if (allowNull) return null;else return 0; | ||
} | ||
if (typeof input === 'number') { | ||
@@ -33,0 +36,0 @@ if (!Number.isFinite(Number(input))) { |
{ | ||
"name": "astype", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Convert unknown type to certain type", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
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
13465
155