UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

11 lines (9 loc) • 270 B
import isNull from './isNull.js';import isUndefined from './isUndefined.js';/** * 判断是否 undefined 和 null * @param {Object} obj 对象 * @return {Boolean} */ function eqNull (obj) { return isNull(obj) || isUndefined(obj) } export default eqNull