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

Function getIteratorFn

code/new-context-api/public/app.js:3228–3237  ·  view source on GitHub ↗
(maybeIterable)

Source from the content-addressed store, hash-verified

3226var FAUX_ITERATOR_SYMBOL = '@@iterator';
3227
3228function getIteratorFn(maybeIterable) {
3229 if (maybeIterable === null || typeof maybeIterable === 'undefined') {
3230 return null;
3231 }
3232 var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
3233 if (typeof maybeIterator === 'function') {
3234 return maybeIterator;
3235 }
3236 return null;
3237}
3238
3239function getComponentName(fiber) {
3240 var type = fiber.type;

Callers 7

createChildFunction · 0.70
updateSlotFunction · 0.70
updateFromMapFunction · 0.70
reconcileChildFibersFunction · 0.70
traverseAllChildrenImplFunction · 0.70
validateChildKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected