mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
21 lines
380 B
JavaScript
21 lines
380 B
JavaScript
/**
|
|
* Checks if `value` is `undefined`.
|
|
*
|
|
* @since 0.1.0
|
|
* @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
|
|
}
|
|
|
|
export default isUndefined
|