effect-io-ai

Package: effect
Module: Boolean

Boolean.or

Combines two booleans using OR: self || that.

When to use

Use to accept when either boolean operand is true.

Example (Combining booleans with OR)

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

assert.deepStrictEqual(Boolean.or(true, true), true)
assert.deepStrictEqual(Boolean.or(true, false), true)
assert.deepStrictEqual(Boolean.or(false, true), true)
assert.deepStrictEqual(Boolean.or(false, false), false)

Signature

declare const or: { (that: boolean): (self: boolean) => boolean; (self: boolean, that: boolean): boolean; }

Source

Since v2.0.0