MCPcopy Create free account
hub / github.com/microsoft/SandDance / toArray

Function toArray

docs/external/js/react.development.js:1311–1317  ·  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#reactchildrentoarray

(children)

Source from the content-addressed store, hash-verified

1309
1310
1311 function toArray(children) {
1312 var result = [];
1313 mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
1314 return child;
1315 });
1316 return result;
1317 }
1318 /**
1319 * Returns the first child in a collection of children and verifies that there
1320 * is only one child in the collection.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected