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

Function mapIntoWithKeyPrefixInternal

docs/external/js/react.development.js:1252–1262  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

1250 }
1251
1252 function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
1253 var escapedPrefix = '';
1254
1255 if (prefix != null) {
1256 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
1257 }
1258
1259 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
1260 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
1261 releaseTraverseContext(traverseContext);
1262 }
1263 /**
1264 * Maps children that are typically specified as `props.children`.
1265 *

Callers 3

mapChildrenFunction · 0.85
toArrayFunction · 0.85

Calls 4

escapeUserProvidedKeyFunction · 0.85
getPooledTraverseContextFunction · 0.85
traverseAllChildrenFunction · 0.85
releaseTraverseContextFunction · 0.85

Tested by

no test coverage detected