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