Package: effect
Module: Boolean
Checks whether every boolean in a collection is true.
When to use
Use to check that every boolean in an iterable is true.
Example (Checking every boolean)
import { Boolean } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(Boolean.every([true, true, true]), true)
assert.deepStrictEqual(Boolean.every([true, false, true]), false)
See
some for checking whether at least one value is trueReducerAnd for reducing booleans with AND through a ReducerSignature
declare const every: (collection: Iterable<boolean>) => boolean
Since v2.0.0