MCPcopy Create free account
hub / github.com/braziljs/eloquente-javascript / 05_2_your_own_loop.js

File 05_2_your_own_loop.js

code/solutions/05_2_your_own_loop.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1function loop(start, test, update, body) {
2 for (let value = start; test(value); value = update(value)) {
3 body(value);
4 }

Callers

nothing calls this directly

Calls 1

loopFunction · 0.70

Tested by

no test coverage detected