(array, predicate)
| 6 | } |
| 7 | |
| 8 | function every2(array, predicate) { |
| 9 | return !array.some(element => !predicate(element)); |
| 10 | } |
| 11 | |
| 12 | console.log(every([1, 3, 5], n => n < 10)); |
| 13 | // → true |
nothing calls this directly
no outgoing calls
no test coverage detected