diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 48d018fc6df310..3718bddafe787c 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1105,6 +1105,9 @@ instead. -Type: Runtime +Type: End-of-Life -The [`util.isFunction()`][] API is deprecated. Please use +The `util.isFunction()` API has been removed. Please use `typeof arg === 'function'` instead. ### DEP0050: `util.isNull()` diff --git a/doc/api/util.md b/doc/api/util.md index 2635a60d878bc3..da0a31256a7e7e 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -2950,35 +2950,6 @@ util.isArray({}); // Returns: false ``` -### `util.isFunction(object)` - - - -> Stability: 0 - Deprecated: Use `typeof value === 'function'` instead. - -* `object` {any} -* Returns: {boolean} - -Returns `true` if the given `object` is a `Function`. Otherwise, returns -`false`. - -```js -const util = require('node:util'); - -function Foo() {} -const Bar = () => {}; - -util.isFunction({}); -// Returns: false -util.isFunction(Foo); -// Returns: true -util.isFunction(Bar); -// Returns: true -``` - ### `util.isPrimitive(object)`