🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

jest-get-type

Package Overview
Dependencies
Maintainers
4
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-get-type - npm Package Compare versions

Comparing version

to
21.3.0-beta.2

5

build/index.js

@@ -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';

2

package.json
{
"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",