MCPcopy Create free account
hub / github.com/docker/getting-started / forEach

Function forEach

app/src/static/js/react-bootstrap.js:10847–10852  ·  view source on GitHub ↗

* Iterates through children that are "valid elements". * * The provided forEachFunc(child, index) will be called for each * leaf child with the index reflecting the position relative to "valid components".

(children, func)

Source from the content-addressed store, hash-verified

10845
10846
10847function forEach(children, func) {
10848 var index = 0;
10849 external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.forEach(children, function (child) {
10850 if (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child)) func(child, index++);
10851 });
10852}
10853
10854
10855// CONCATENATED MODULE: ./src/Carousel.js

Callers 2

react-bootstrap.jsFile · 0.85
getDefaultActiveKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…