* Maps children that are typically specified as `props.children`. * * See https://facebook.github.io/react/docs/react-api.html#react.children.map * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children
(children, func, context)
| 2190 | * @return {object} Object containing the ordered map of results. |
| 2191 | */ |
| 2192 | function mapChildren(children, func, context) { |
| 2193 | if (children == null) { |
| 2194 | return children; |
| 2195 | } |
| 2196 | var result = []; |
| 2197 | mapIntoWithKeyPrefixInternal(children, result, null, func, context); |
| 2198 | return result; |
| 2199 | } |
| 2200 | |
| 2201 | /** |
| 2202 | * Count the number of children that are typically specified as |
nothing calls this directly
no test coverage detected