Skip to main content

isNull

function isNull
Jump to headingisNull(object: unknown): object is null
Deprecated

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: unknown

Return Type Jump to heading

object is null
Back to top