MCPcopy Create free account
hub / github.com/braziljs/eloquente-javascript / every2

Function every2

code/solutions/05_3_everything.js:8–10  ·  view source on GitHub ↗
(array, predicate)

Source from the content-addressed store, hash-verified

6}
7
8function every2(array, predicate) {
9 return !array.some(element => !predicate(element));
10}
11
12console.log(every([1, 3, 5], n => n < 10));
13// → true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected