isUndefinedRaw
Returns true
if the given object
is undefined
. Otherwise, returns false
.
const util = require('node:util');
const foo = undefined;
util.isUndefined(5);
// Returns: false
util.isUndefined(foo);
// Returns: true
util.isUndefined(null);
// Returns: false
Content copied to clipboard
Since
v0.11.5