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

Function mapIntoWithKeyPrefixInternal

code/redux/public/app.js:20561–20569  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

20559}
20560
20561function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
20562 var escapedPrefix = '';
20563 if (prefix != null) {
20564 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
20565 }
20566 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
20567 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
20568 releaseTraverseContext(traverseContext);
20569}
20570
20571/**
20572 * 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