MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / traverseAllChildren

Function traverseAllChildren

bundle.js:2095–2101  ·  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 op

(children, callback, traverseContext)

Source from the content-addressed store, hash-verified

2093 * @return {!number} The number of children in this subtree.
2094 */
2095 function traverseAllChildren(children, callback, traverseContext) {
2096 if (children == null) {
2097 return 0;
2098 }
2099
2100 return traverseAllChildrenImpl(children, '', callback, traverseContext);
2101 }
2102
2103 /**
2104 * Generate a key string that identifies a component within a set.

Callers 3

forEachChildrenFunction · 0.85
countChildrenFunction · 0.85

Calls 1

traverseAllChildrenImplFunction · 0.85

Tested by

no test coverage detected