Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80742 views
1
/**
2
* Checks if `value` is `undefined`.
3
*
4
* @static
5
* @memberOf _
6
* @category Lang
7
* @param {*} value The value to check.
8
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
9
* @example
10
*
11
* _.isUndefined(void 0);
12
* // => true
13
*
14
* _.isUndefined(null);
15
* // => false
16
*/
17
function isUndefined(value) {
18
return value === undefined;
19
}
20
21
module.exports = isUndefined;
22
23