util.isUndefined(object)
Stability: 0 - Deprecated
Returns true if the given "object" is undefined. Otherwise, returns false.
const util = require('util');
var foo;
util.isUndefined(5)
// false
util.isUndefined(foo)
// true
util.isUndefined(null)
// false
Please login to continue.