MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / mapIntoWithKeyPrefixInternal

Function mapIntoWithKeyPrefixInternal

code/third-party/public/app.js:18450–18458  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

18448}
18449
18450function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
18451 var escapedPrefix = '';
18452 if (prefix != null) {
18453 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
18454 }
18455 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
18456 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
18457 releaseTraverseContext(traverseContext);
18458}
18459
18460/**
18461 * Maps children that are typically specified as `props.children`.

Callers 3

mapChildrenFunction · 0.70
toArrayFunction · 0.70

Calls 4

escapeUserProvidedKeyFunction · 0.70
getPooledTraverseContextFunction · 0.70
traverseAllChildrenFunction · 0.70
releaseTraverseContextFunction · 0.70

Tested by

no test coverage detected