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

Function mapChildren

docs/external/js/react.development.js:1278–1286  ·  view source on GitHub ↗

* Maps children that are typically specified as `props.children`. * * See https://reactjs.org/docs/react-api.html#reactchildrenmap * * The provided mapFunction(child, key, index) will be called for each * leaf child. * * @param {?*} children Children tree container. * @param

(children, func, context)

Source from the content-addressed store, hash-verified

1276
1277
1278 function mapChildren(children, func, context) {
1279 if (children == null) {
1280 return children;
1281 }
1282
1283 var result = [];
1284 mapIntoWithKeyPrefixInternal(children, result, null, func, context);
1285 return result;
1286 }
1287 /**
1288 * Count the number of children that are typically specified as
1289 * `props.children`.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected