function isNull
Jump to headingisNull(object: unknown): object is nullDeprecated
Returns true if the given object is strictly null. Otherwise, returnsfalse.
import util from 'node:util';
util.isNull(0);
// Returns: false
util.isNull(undefined);
// Returns: false
util.isNull(null);
// Returns: true
Parameters Jump to heading
Jump to headingobject: unknownReturn Type Jump to heading
object is null