* Iterates through children that are typically specified as `props.children`. * * The provided forEachFunc(child, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param {function(*, int)} forEachFunc * @param {*} forEachContext Context for forE
(children, forEachFunc, forEachContext)
| 4236 | * @param {*} forEachContext Context for forEachContext. |
| 4237 | */ |
| 4238 | function forEachChildren(children, forEachFunc, forEachContext) { |
| 4239 | if (children == null) { |
| 4240 | return children; |
| 4241 | } |
| 4242 | var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext); |
| 4243 | traverseAllChildren(children, forEachSingleChild, traverseContext); |
| 4244 | ForEachBookKeeping.release(traverseContext); |
| 4245 | } |
| 4246 | |
| 4247 | /** |
| 4248 | * PooledClass representing the bookkeeping associated with performing a child |
nothing calls this directly
no test coverage detected