MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / createIterator

Function createIterator

lib/web/polyfill.js:494–497  ·  view source on GitHub ↗
(Constructor, NAME, next, proto)

Source from the content-addressed store, hash-verified

492 FF_ITERATOR in ArrayProto && hidden(O, FF_ITERATOR, value);
493}
494function createIterator(Constructor, NAME, next, proto){
495 Constructor[PROTOTYPE] = create(proto || IteratorPrototype, {next: descriptor(1, next)});
496 setToStringTag(Constructor, NAME + ' Iterator');
497}
498function defineIterator(Constructor, NAME, value, DEFAULT){
499 var proto = Constructor[PROTOTYPE]
500 , iter = get(proto, SYMBOL_ITERATOR) || get(proto, FF_ITERATOR) || (DEFAULT && get(proto, DEFAULT)) || value;

Callers 2

defineStdIteratorsFunction · 0.85
polyfill.jsFile · 0.85

Calls 3

createFunction · 0.85
descriptorFunction · 0.85
setToStringTagFunction · 0.85

Tested by

no test coverage detected