MCPcopy Index your code
hub / github.com/Effect-TS/effect / every

Function every

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

Source from the content-addressed store, hash-verified

255 * @since 2.0.0
256 */
257export const every = (collection: Iterable<boolean>): boolean => {
258 for (const b of collection) {
259 if (!b) {
260 return false
261 }
262 }
263 return true
264}
265
266/**
267 * This utility function is used to check if at least one of the elements in a collection of boolean values is `true`.

Callers 1

SortedSet.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…