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

Function mapIntoWithKeyPrefixInternal

code/composition/public/app.js:19355–19363  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

19353}
19354
19355function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
19356 var escapedPrefix = '';
19357 if (prefix != null) {
19358 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
19359 }
19360 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
19361 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
19362 releaseTraverseContext(traverseContext);
19363}
19364
19365/**
19366 * 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