MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / traverseAllChildren

Function traverseAllChildren

examples/simple/react.js:17146–17152  ·  view source on GitHub ↗

* Traverses children that are typically specified as `props.children`, but * might also be specified through attributes: * * - `traverseAllChildren(this.props.children, ...)` * - `traverseAllChildren(this.props.leftPanelChildren, ...)` * * The `traverseContext` is an optional argument that is

(children, callback, traverseContext)

Source from the content-addressed store, hash-verified

17144 * @return {!number} The number of children in this subtree.
17145 */
17146function traverseAllChildren(children, callback, traverseContext) {
17147 if (children == null) {
17148 return 0;
17149 }
17150
17151 return traverseAllChildrenImpl(children, '', callback, traverseContext);
17152}
17153
17154module.exports = traverseAllChildren;
17155},{"114":114,"143":143,"154":154,"34":34,"52":52,"61":61}],127:[function(_dereq_,module,exports){

Callers 5

react.jsFile · 0.70
forEachChildrenFunction · 0.70
countChildrenFunction · 0.70
flattenChildrenFunction · 0.70

Calls 1

traverseAllChildrenImplFunction · 0.70

Tested by

no test coverage detected