effect-io-ai

Package: effect
Module: Predicate

Predicate.isUndefined

Checks whether a value is undefined.

When to use

Use when you need a Predicate guard for values that are exactly undefined.

Details

Uses input === undefined.

Example (Guarding undefined values)

import { Predicate } from "effect"

const data: unknown = undefined

console.log(Predicate.isUndefined(data))

See

Signature

declare const isUndefined: (input: unknown) => input is undefined

Source

Since v2.0.0