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

Function mapIntoWithKeyPrefixInternal

code/communication/public/app.js:19252–19260  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

19250}
19251
19252function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
19253 var escapedPrefix = '';
19254 if (prefix != null) {
19255 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
19256 }
19257 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
19258 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
19259 releaseTraverseContext(traverseContext);
19260}
19261
19262/**
19263 * 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