1
This commit is contained in:
13
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/eqNull.js
Normal file
13
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/eqNull.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var isNull = require('./isNull')
|
||||
var isUndefined = require('./isUndefined')
|
||||
|
||||
/**
|
||||
* 判断是否 undefined 和 null
|
||||
* @param {Object} obj 对象
|
||||
* @return {Boolean}
|
||||
*/
|
||||
function eqNull (obj) {
|
||||
return isNull(obj) || isUndefined(obj)
|
||||
}
|
||||
|
||||
module.exports = eqNull
|
||||
Reference in New Issue
Block a user