* 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)
| 19376 | * @return {object} Object containing the ordered map of results. |
| 19377 | */ |
| 19378 | function mapChildren(children, func, context) { |
| 19379 | if (children == null) { |
| 19380 | return children; |
| 19381 | } |
| 19382 | var result = []; |
| 19383 | mapIntoWithKeyPrefixInternal(children, result, null, func, context); |
| 19384 | return result; |
| 19385 | } |
| 19386 | |
| 19387 | /** |
| 19388 | * Count the number of children that are typically specified as |
nothing calls this directly
no test coverage detected