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

Function getIteratorFn

code/higher-order-components/public/app.js:1100–1105  ·  view source on GitHub ↗

* Returns the iterator method function contained on the iterable object. * * Be sure to invoke the function with the iterable as context: * * var iteratorFn = getIteratorFn(myIterable); * if (iteratorFn) { * var iterator = iteratorFn.call(myIterable); * ...

(maybeIterable)

Source from the content-addressed store, hash-verified

1098 * @return {?function}
1099 */
1100 function getIteratorFn(maybeIterable) {
1101 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1102 if (typeof iteratorFn === 'function') {
1103 return iteratorFn;
1104 }
1105 }
1106
1107 /**
1108 * Collection of methods that allow declaration and validation of props that are

Callers 8

isNodeFunction · 0.70
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