UNPKG

haw-utils

Version:

一个基于业务场景的工具方法库

44 lines (43 loc) 1.02 kB
(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.isUndefined = 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; /** * 检查值是否为Undefined * * @static * @alias module:Type.isUndefined * @since 1.1.0 * @param {*} value 检查值 * @returns {Boolean} 是否为Undefined * @example * * isUndefined(undefined) * // => true * * isUndefined(void 0) * // => true * * isUndefined(null) * // => false */ function isUndefined(value) { return value === void 0; } var _default = isUndefined; _exports["default"] = _default; });