* 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)
| 1139 | * @return {?function} |
| 1140 | */ |
| 1141 | function getIteratorFn(maybeIterable) { |
| 1142 | var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); |
| 1143 | if (typeof iteratorFn === 'function') { |
| 1144 | return iteratorFn; |
| 1145 | } |
| 1146 | } |
| 1147 | |
| 1148 | /** |
| 1149 | * Collection of methods that allow declaration and validation of props that are |
no outgoing calls
no test coverage detected