MCPcopy Create free account
hub / github.com/Lobos/react-ui / toArray

Function toArray

docs/lib/react.js:4401–4405  ·  view source on GitHub ↗

* Flatten a children object (typically specified as `props.children`) and * return an array with appropriately re-keyed children.

(children)

Source from the content-addressed store, hash-verified

4399 * return an array with appropriately re-keyed children.
4400 */
4401function toArray(children) {
4402 var result = [];
4403 mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
4404 return result;
4405}
4406
4407var ReactChildren = {
4408 forEach: forEachChildren,

Callers 1

createArrayFromMixedFunction · 0.70

Calls 2

invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…