* 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: ?ReactNodeList)
| 426 | * See https://reactjs.org/docs/react-api.html#reactchildrentoarray |
| 427 | */ |
| 428 | function toArray(children: ?ReactNodeList): Array<React$Node> { |
| 429 | return mapChildren(children, child => child) || []; |
| 430 | } |
| 431 | |
| 432 | /** |
| 433 | * Returns the first child in a collection of children and verifies that there |
nothing calls this directly
no test coverage detected