haw-utils
Version:
一个基于业务场景的工具方法库
41 lines (40 loc) • 931 B
JavaScript
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.isNull = mod.exports;
}
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports["default"] = void 0;
/**
* 检查值是否为Null
*
* @static
* @alias module:Type.isNull
* @since 1.1.0
* @param {*} value 检查值
* @returns {Boolean} 是否为Null
* @example
*
* isNull(null)
* // => true
*
* isNull(void 0)
* // => false
*/
function isNull(value) {
return value === null;
}
var _default = isNull;
_exports["default"] = _default;
});