* Maps children that are typically specified as `props.children`. * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param {function(*, int)} func The map function. * @param {*} context Context for mapFunc
(children, func, context)
| 4311 | * @return {object} Object containing the ordered map of results. |
| 4312 | */ |
| 4313 | function mapChildren(children, func, context) { |
| 4314 | if (children == null) { |
| 4315 | return children; |
| 4316 | } |
| 4317 | var result = []; |
| 4318 | mapIntoWithKeyPrefixInternal(children, result, null, func, context); |
| 4319 | return result; |
| 4320 | } |
| 4321 | |
| 4322 | function forEachSingleChildDummy(traverseContext, child, name) { |
| 4323 | return null; |
nothing calls this directly
no test coverage detected