Comparing version 3.1.8 to 3.1.9
@@ -29,4 +29,3 @@ (function (global, factory) { | ||
function isNull(obj) { | ||
var type = getType(obj); | ||
return type === 'Undefined' || type === 'Null'; | ||
return obj === undefined || obj === null; | ||
} | ||
@@ -33,0 +32,0 @@ |
@@ -27,4 +27,3 @@ 'use strict'; | ||
function isNull(obj) { | ||
var type = getType(obj); | ||
return type === 'Undefined' || type === 'Null'; | ||
return obj === undefined || obj === null; | ||
} | ||
@@ -31,0 +30,0 @@ |
{ | ||
"name": "ntils", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"description": "一个 Node & Browser 工具函数集", | ||
@@ -28,2 +28,2 @@ "main": "./lib/index.js", | ||
} | ||
} | ||
} |
@@ -23,4 +23,3 @@ /** | ||
export function isNull(obj) { | ||
var type = getType(obj); | ||
return type === 'Undefined' || type === 'Null'; | ||
return obj === undefined || obj === null; | ||
}; | ||
@@ -27,0 +26,0 @@ |
55736
2139