* Flatten a children object (typically specified as `props.children`) and * return an array with appropriately re-keyed children. * * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
(children)
| 1309 | |
| 1310 | |
| 1311 | function toArray(children) { |
| 1312 | var result = []; |
| 1313 | mapIntoWithKeyPrefixInternal(children, result, null, function (child) { |
| 1314 | return child; |
| 1315 | }); |
| 1316 | return result; |
| 1317 | } |
| 1318 | /** |
| 1319 | * Returns the first child in a collection of children and verifies that there |
| 1320 | * is only one child in the collection. |
nothing calls this directly
no test coverage detected