packages/react/src/ReactChildren.js
/**
 * 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
 */
Flatten a children object (typically specified as `props.children`) and
return an array with appropriately re-keyed children.


Flatten a children object ( typically specified as ` props . children ` ) and return an array with appropriately re - keyed children .
function toArray(children) {
  const result = [];
  mapIntoWithKeyPrefixInternal(children, result, null, child => child);
  return result;
}
function toArray ( children ) { const result = [ ] ; mapIntoWithKeyPrefixInternal ( children , result , null , child => child ) ; return result ; }
Flatten a children object (typically specified as `props.children`) and
 return an array with appropriately re-keyed children.
Flatten a children object ( typically specified as ` props . children ` ) and return an array with appropriately re - keyed children .