@coetry/simpletypes
Advanced tools
Comparing version 0.0.0 to 0.0.1
11
index.js
@@ -11,3 +11,3 @@ module.exports = { | ||
function isANumber (x) { | ||
if (typeof x === 'number') { | ||
if (typeof x === 'number' && !isNan(x)) { | ||
return true | ||
@@ -30,3 +30,3 @@ } | ||
function isAnObject (x) { | ||
if (!isAnArray(x) && typeof x === 'object') { | ||
if (!isAnArray(x) && typeof x === 'object' && x !== null) { | ||
return true | ||
@@ -50,1 +50,8 @@ } | ||
} | ||
function isUndefined (x) { | ||
if (typeof x === 'undefined') { | ||
return true | ||
} | ||
return false | ||
} |
{ | ||
"name": "@coetry/simpletypes", | ||
"description": "simple type checks for js", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "git://github.com/coetry/tx.git" |
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
2296
47