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

Function toArray

code/redux/public/app.js:20612–20616  ·  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

20610 * See https://reactjs.org/docs/react-api.html#react.children.toarray
20611 */
20612function toArray(children) {
20613 var result = [];
20614 mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
20615 return result;
20616}
20617
20618/**
20619 * 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