Stability: 0 - Deprecated: Use
value === undefined
instead.
object
{any}- Returns: {boolean}
Returns true
if the given object
is undefined
. Otherwise, returns false
.
const util = require('util');
const foo = undefined;
util.isUndefined(5);
// Returns: false
util.isUndefined(foo);
// Returns: true
util.isUndefined(null);
// Returns: false