export function iterateForEach(it, fn) { for ( let item = it.next(); item.done !== true; item = it.next() ) { fn(item.value); } }