MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / loop

Function loop

code/solutions/11_1_tracking_the_scalpel.js:11–16  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

9
10function locateScalpel2(nest) {
11 function loop(current) {
12 return anyStorage(nest, current, "scalpel").then(next => {
13 if (next == current) return current;
14 else return loop(next);
15 });
16 }
17 return loop(nest.name);
18}
19

Callers 1

locateScalpel2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected