effect-io-ai

Package: effect
Module: Function

Function.constFalse

Returns false when called.

When to use

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

Example (Returning false from a thunk)

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

assert.deepStrictEqual(Function.constFalse(), false)

Signature

declare const constFalse: LazyArg<boolean>

Source

Since v2.0.0