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

Function countChildren

bundle.js:2210–2212  ·  view source on GitHub ↗

* Count the number of children that are typically specified as * `props.children`. * * See https://facebook.github.io/react/docs/react-api.html#react.children.count * * @param {?*} children Children tree container. * @return {number} The number of children.

(children, context)

Source from the content-addressed store, hash-verified

2208 * @return {number} The number of children.
2209 */
2210 function countChildren(children, context) {
2211 return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
2212 }
2213
2214 /**
2215 * Flatten a children object (typically specified as `props.children`) and

Callers

nothing calls this directly

Calls 1

traverseAllChildrenFunction · 0.85

Tested by

no test coverage detected