MCPcopy Create free account
hub / github.com/Effect-TS/effect / every

Function every

packages/effect/src/Boolean.ts:378–385  ·  view source on GitHub ↗
(collection: Iterable<boolean>)

Source from the content-addressed store, hash-verified

376 * @since 2.0.0
377 */
378export const every = (collection: Iterable<boolean>): boolean => {
379 for (const b of collection) {
380 if (!b) {
381 return false
382 }
383 }
384 return true
385}
386
387/**
388 * Checks whether at least one boolean in a collection is `true`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected