c4197fb3cf829fe72e3781ff63d2ae43e858f696
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / isNil.js
1 /**
2  * Checks if `value` is `null` or `undefined`.
3  *
4  * @static
5  * @memberOf _
6  * @category Lang
7  * @param {*} value The value to check.
8  * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
9  * @example
10  *
11  * _.isNil(null);
12  * // => true
13  *
14  * _.isNil(void 0);
15  * // => true
16  *
17  * _.isNil(NaN);
18  * // => false
19  */
20 function isNil(value) {
21   return value == null;
22 }
23
24 module.exports = isNil;