* Maps children that are typically specified as `props.children`. * * See https://reactjs.org/docs/react-api.html#react.children.map * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param {function(*, i
(children, func, context)
| 18471 | * @return {object} Object containing the ordered map of results. |
| 18472 | */ |
| 18473 | function mapChildren(children, func, context) { |
| 18474 | if (children == null) { |
| 18475 | return children; |
| 18476 | } |
| 18477 | var result = []; |
| 18478 | mapIntoWithKeyPrefixInternal(children, result, null, func, context); |
| 18479 | return result; |
| 18480 | } |
| 18481 | |
| 18482 | /** |
| 18483 | * Count the number of children that are typically specified as |
nothing calls this directly
no test coverage detected