(collection: Iterable<Predicate<A>>)
| 1362 | * @see some |
| 1363 | */ |
| 1364 | export 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…