"use strict";

exports.__esModule = true;
exports.isNull = void 0;

/**
 * ---
 *  为空值判断
 *  * undefined null NaN  ''  返回为true
 *  * 其外都为false (包含 0 , false ,Infinity,-Infinity)
 * @param {*} arg 判断值是否为空
 * @returns {boolean} true : 为空 ; false：不为空
 * @function isNull
 * @author libo
 * @static
 * @example  01 空值判断
 * --------------------------------------------------------------------------
 *  isNull(null);// true
 *  isNull(undefined); // true
 *  isNull(NaN); // true
 *  isNull(''); // true
 *
 *  isNull(0);  // false
 *  isNull(false); // false
 *  isNull(Infinity); // false
 *
 */
var isNull = function isNull(arg) {
  return !arg && arg !== 0 && typeof arg !== 'boolean';
};

exports.isNull = isNull;