You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
263 B
14 lines
263 B
5 months ago
|
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
|