MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / toArray

Function toArray

examples/simple/react.js:4341–4345  ·  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

4339 * return an array with appropriately re-keyed children.
4340 */
4341function toArray(children) {
4342 var result = [];
4343 mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
4344 return result;
4345}
4346
4347var ReactChildren = {
4348 forEach: forEachChildren,

Callers 1

createArrayFromMixedFunction · 0.70

Calls 2

invariantFunction · 0.70

Tested by

no test coverage detected