MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / implicitLoop

Method implicitLoop

src/core/runtime/runtime.js:576–582  ·  view source on GitHub ↗
(value, func)

Source from the content-addressed store, hash-verified

574 }
575
576 implicitLoop(value, func) {
577 if (this.shouldAutoIterate(value)) {
578 for (const x of value) func(x);
579 } else {
580 func(value);
581 }
582 }
583
584 /**
585 * Iterate over targets with a when condition, applying forward or reverse per element.

Callers 15

replaceInDomMethod · 0.95
implicitLoopWhenMethod · 0.95
conversions.jsFile · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
_resolveScrollFunction · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
toggleMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected