Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/lodash/isNull.js
VanyaAlekseev ccc3e790bb lab2
2023-12-03 16:59:28 +04:00

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;