Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marijnh/Eloquent-JavaScript
/ 05_3_everything.js
File
05_3_everything.js
code/solutions/05_3_everything.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
every(array, predicate) {
2
for
(
let
element of array) {
3
if
(!predicate(element))
return
false;
4
}
Callers
nothing calls this directly
Calls
1
every
Function · 0.85
Tested by
no test coverage detected