* 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)
| 16378 | * @return {?function} |
| 16379 | */ |
| 16380 | function 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 | |
| 16387 | module.exports = getIteratorFn; |
| 16388 | },{}],115:[function(_dereq_,module,exports){ |
no outgoing calls
no test coverage detected