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

Function forOf

lib/web/polyfill.js:579–587  ·  view source on GitHub ↗
(iterable, entries, fn, that)

Source from the content-addressed store, hash-verified

577 }
578}
579function forOf(iterable, entries, fn, that){
580 safeIterClose(function(iterator){
581 var f = ctx(fn, that, entries ? 2 : 1)
582 , step;
583 while(!(step = iterator.next()).done)if(stepCall(f, step.value, entries) === false){
584 return closeIterator(iterator);
585 }
586 }, getIterator(iterable));
587}
588
589/******************************************************************************
590 * Module : es6.symbol *

Callers 2

polyfill.jsFile · 0.85
initFromIterableFunction · 0.85

Calls 6

safeIterCloseFunction · 0.85
ctxFunction · 0.85
stepCallFunction · 0.85
closeIteratorFunction · 0.85
getIteratorFunction · 0.85
nextMethod · 0.65

Tested by

no test coverage detected