Skip to main content
isObject - node__util.d.ts - Node documentation
function isObject

Usage in Deno

```typescript import { isObject } from "node:node__util.d.ts"; ```
isObject(object: unknown): boolean
Deprecated
Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). Otherwise, returns `false`. ```js import util from 'node:util'; util.isObject(5); // Returns: false util.isObject(null); // Returns: false util.isObject({}); // Returns: true util.isObject(() => {}); // Returns: false ```

Parameters

object: unknown

Return Type

boolean