MCPcopy Create free account
hub / github.com/Lobos/react-ui / mapIntoWithKeyPrefixInternal

Function mapIntoWithKeyPrefixInternal

docs/lib/react.js:4352–4360  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

4350}
4351
4352function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
4353 var escapedPrefix = '';
4354 if (prefix != null) {
4355 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
4356 }
4357 var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
4358 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
4359 MapBookKeeping.release(traverseContext);
4360}
4361
4362/**
4363 * Maps children that are typically specified as `props.children`.

Callers 3

mapChildrenFunction · 0.85
toArrayFunction · 0.85

Calls 2

escapeUserProvidedKeyFunction · 0.85
traverseAllChildrenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…