* Maps children that are typically specified as `props.children`. * * See https://reactjs.org/docs/react-api.html#reactchildrenmap * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param
(children, func, context)
| 1276 | |
| 1277 | |
| 1278 | function mapChildren(children, func, context) { |
| 1279 | if (children == null) { |
| 1280 | return children; |
| 1281 | } |
| 1282 | |
| 1283 | var result = []; |
| 1284 | mapIntoWithKeyPrefixInternal(children, result, null, func, context); |
| 1285 | return result; |
| 1286 | } |
| 1287 | /** |
| 1288 | * Count the number of children that are typically specified as |
| 1289 | * `props.children`. |
nothing calls this directly
no test coverage detected