MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / mapIntoWithKeyPrefixInternal

Function mapIntoWithKeyPrefixInternal

examples/simple/react.js:4292–4300  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

4290}
4291
4292function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
4293 var escapedPrefix = '';
4294 if (prefix != null) {
4295 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
4296 }
4297 var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
4298 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
4299 MapBookKeeping.release(traverseContext);
4300}
4301
4302/**
4303 * Maps children that are typically specified as `props.children`.

Callers 3

mapChildrenFunction · 0.70
toArrayFunction · 0.70

Calls 2

escapeUserProvidedKeyFunction · 0.70
traverseAllChildrenFunction · 0.70

Tested by

no test coverage detected