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

Function getIteratorFn

examples/simple/react.js:16380–16385  ·  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

16378 * @return {?function}
16379 */
16380function getIteratorFn(maybeIterable) {
16381 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
16382 if (typeof iteratorFn === 'function') {
16383 return iteratorFn;
16384 }
16385}
16386
16387module.exports = getIteratorFn;
16388},{}],115:[function(_dereq_,module,exports){

Callers 3

validateChildKeysFunction · 0.70
isNodeFunction · 0.70
traverseAllChildrenImplFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected