diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9fd2794f3a48a4..f99a5bce4b358b 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1150,6 +1150,9 @@ The `util.isNull()` API has been removed. Please use -Type: Runtime +Type: End-of-Life -The [`util.isNullOrUndefined()`][] API is deprecated. Please use +The `util.isNullOrUndefined()` API has been removed. Please use `arg === null || arg === undefined` instead. ### DEP0052: `util.isNumber()` @@ -3787,7 +3790,6 @@ is deprecated to better align with recommendations per [NIST SP 800-38D][]. [`util.isArray()`]: util.md#utilisarrayobject [`util.isError()`]: util.md#utiliserrorobject [`util.isFunction()`]: util.md#utilisfunctionobject -[`util.isNullOrUndefined()`]: util.md#utilisnullorundefinedobject [`util.isNumber()`]: util.md#utilisnumberobject [`util.isObject()`]: util.md#utilisobjectobject [`util.isPrimitive()`]: util.md#utilisprimitiveobject diff --git a/doc/api/util.md b/doc/api/util.md index ec6892ebb1043a..a942c2447a11f4 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -3045,33 +3045,6 @@ util.isFunction(Bar); // Returns: true ``` -### `util.isNullOrUndefined(object)` - - - -> Stability: 0 - Deprecated: Use -> `value === undefined || value === null` instead. - -* `object` {any} -* Returns: {boolean} - -Returns `true` if the given `object` is `null` or `undefined`. Otherwise, -returns `false`. - -```js -const util = require('node:util'); - -util.isNullOrUndefined(0); -// Returns: false -util.isNullOrUndefined(undefined); -// Returns: true -util.isNullOrUndefined(null); -// Returns: true -``` - ### `util.isNumber(object)`