voca
Version:
The ultimate JavaScript string library
14 lines (12 loc) • 316 B
JavaScript
/**
* Checks if `value` is `null` or `undefined`
*
* @ignore
* @function isNil
* @param {*} value The object to check
* @return {boolean} Returns `true` is `value` is `undefined` or `null`, `false` otherwise
*/
function isNil(value) {
return value === undefined || value === null;
}
export { isNil as i };