Lobashov_Ivan_PIBD-21_IP/Lab3/node_modules/lodash/isUndefined.js

23 lines
416 B
JavaScript
Raw Permalink Normal View History

2024-01-10 22:39:31 +04:00
/**
* Checks if `value` is `undefined`.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
* @example
*
* _.isUndefined(void 0);
* // => true
*
* _.isUndefined(null);
* // => false
*/
function isUndefined(value) {
return value === undefined;
}
module.exports = isUndefined;