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

Function every

packages/effect/src/Predicate.ts:1364–1371  ·  view source on GitHub ↗
(collection: Iterable<Predicate<A>>)

Source from the content-addressed store, hash-verified

1362 * @see some
1363 */
1364export const every = <A>(collection: Iterable<Predicate<A>>): Predicate<A> => (a: A) => {
1365 for (const p of collection) {
1366 if (!p(a)) {
1367 return false
1368 }
1369 }
1370 return true
1371}
1372
1373/**
1374 * Takes an iterable of predicates and returns a new predicate. The new predicate

Callers

nothing calls this directly

Calls 1

pFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…