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