UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

29 lines (28 loc) 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNil = void 0; /** * Checks if `value` is `null` or `undefined`. * * @since 5.6.0 * @category Lang * @param value The value to check. * @returns Returns `true` if `value` is nullish, else `false`. * @example * * ```js * isNil(null) * // => true * * isNil(void 0) * // => true * * isNil(NaN) * // => false * ``` */ function isNil(value) { return value == null; } exports.isNil = isNil; exports.default = isNil;