Hyperlinkv0.8.0-beta.28

Function

Function.constUndefinedconsteffect/Function.ts:408
(): undefined

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)
constants
export const constUndefined: LazyArg<undefined> = constant(undefined)
Referenced by 4 symbols