* 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)
| 1242 | * @return {?function} |
| 1243 | */ |
| 1244 | function getIteratorFn(maybeIterable) { |
| 1245 | var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); |
| 1246 | if (typeof iteratorFn === 'function') { |
| 1247 | return iteratorFn; |
| 1248 | } |
| 1249 | } |
| 1250 | |
| 1251 | /** |
| 1252 | * Collection of methods that allow declaration and validation of props that are |
no outgoing calls
no test coverage detected