MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / toArray

Function toArray

code/styling/public/app.js:19268–19272  ·  view source on GitHub ↗

* 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#react.children.toarray

(children)

Source from the content-addressed store, hash-verified

19266 * See https://reactjs.org/docs/react-api.html#react.children.toarray
19267 */
19268function toArray(children) {
19269 var result = [];
19270 mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
19271 return result;
19272}
19273
19274/**
19275 * Returns the first child in a collection of children and verifies that there

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected