MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / mapIntoWithKeyPrefixInternal

Function mapIntoWithKeyPrefixInternal

bundle.js:2169–2177  ·  view source on GitHub ↗
(children, array, prefix, func, context)

Source from the content-addressed store, hash-verified

2167 }
2168
2169 function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
2170 var escapedPrefix = '';
2171 if (prefix != null) {
2172 escapedPrefix = escapeUserProvidedKey(prefix) + '/';
2173 }
2174 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
2175 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
2176 releaseTraverseContext(traverseContext);
2177 }
2178
2179 /**
2180 * Maps children that are typically specified as `props.children`.

Callers 3

mapChildrenFunction · 0.85
toArrayFunction · 0.85

Calls 4

escapeUserProvidedKeyFunction · 0.85
getPooledTraverseContextFunction · 0.85
traverseAllChildrenFunction · 0.85
releaseTraverseContextFunction · 0.85

Tested by

no test coverage detected