effect-io-ai

Package: effect
Module: Function

Function.constUndefined

Returns undefined when called.

When to use

Use when you need a thunk that returns undefined on every invocation.

Example (Returning undefined from a thunk)

import { Function } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(Function.constUndefined(), undefined)

Signature

declare const constUndefined: LazyArg<undefined>

Source

Since v2.0.0