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

Usage in Deno

```typescript import { isNull } from "node:node__util.d.ts"; ```
isNull(object: unknown): object is null
Deprecated
Since v4.0.0 - Use `value === null` instead.
Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. ```js import util from 'node:util'; util.isNull(0); // Returns: false util.isNull(undefined); // Returns: false util.isNull(null); // Returns: true ```

Parameters

object: unknown

Return Type

object is null