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

Function mapIntoWithKeyPrefixInternal

code/styling/public/app.js:19217–19225  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

19215}
19216
19217function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
19218 var escapedPrefix = '';
19219 if (prefix != null) {
19220 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
19221 }
19222 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
19223 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
19224 releaseTraverseContext(traverseContext);
19225}
19226
19227/**
19228 * 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