UNPKG

voca

Version:

The ultimate JavaScript string library

16 lines (13 loc) 331 B
'use strict'; /** * 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; } exports.isNil = isNil;