effect-io-ai

Package: effect
Module: Predicate

Predicate.isNull

Checks whether a value is null.

When to use

Use when you need a Predicate guard for nullable values.

Details

Uses input === null.

Example (Guarding null values)

import { Predicate } from "effect"

const data: unknown = null

console.log(Predicate.isNull(data))

See

Signature

declare const isNull: (input: unknown) => input is null

Source

Since v2.0.0