UNPKG

awesome-string

Version:

The ultimate JavaScript string library

11 lines 306 B
/** * 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 */ export default function isNil(value) { return value === undefined || value === null; }