MCPcopy Create free account
hub / github.com/plotly/dash / getIteratorFn

Function getIteratorFn

dash/deps/prop-types@15.8.1.js:230–235  ·  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

228 * @return {?function}
229 */
230 function getIteratorFn(maybeIterable) {
231 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
232 if (typeof iteratorFn === 'function') {
233 return iteratorFn;
234 }
235 }
236
237 /**
238 * Collection of methods that allow declaration and validation of props that are

Callers 1

isNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…