mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-11-16 04:43:05 +00:00
23 lines
381 B
JavaScript
23 lines
381 B
JavaScript
|
/**
|
||
|
* Checks if `value` is `null`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isNull(null);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isNull(void 0);
|
||
|
* // => false
|
||
|
*/
|
||
|
function isNull(value) {
|
||
|
return value === null;
|
||
|
}
|
||
|
|
||
|
module.exports = isNull;
|