jest-get-type
Advanced tools
Comparing version 21.3.0-alpha.eff7a1cf to 21.3.0-beta.2
@@ -26,6 +26,7 @@ /** | ||
// get the type of a value with handling the edge cases like `typeof []` | ||
// and `typeof null` | ||
const getType = value => { | ||
if (typeof value === 'undefined') { | ||
if (value === undefined) { | ||
return 'undefined'; | ||
@@ -51,2 +52,4 @@ } else if (value === null) { | ||
return 'set'; | ||
} else if (value.constructor === Date) { | ||
return 'date'; | ||
} | ||
@@ -53,0 +56,0 @@ return 'object'; |
{ | ||
"name": "jest-get-type", | ||
"description": "A utility function to get the type of a value", | ||
"version": "21.3.0-alpha.eff7a1cf", | ||
"version": "21.3.0-beta.2", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "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
1623
43