isNullish
More specific than falsy. '', 0, and -0 will evaluate as false so that functions that want to validly return these can do so, and be tested for problematic response.
Lang.isNullish(thing)
More specific than falsy. '', 0, and -0 will evaluate as false so that functions that want to validly return these can do so, and be tested for problematic response.
Parameters
-
thing
{Object} thing to be tested
Returns
{Boolean}
will return true if thing is null, undefined, NaN. Otherwise it will return false.