MCPcopy Create free account
hub / github.com/tensorflow/tfjs / next

Method next

tfjs-data/src/iterators/lazy_iterator.ts:498–505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

496 }
497
498 async next(): Promise<IteratorResult<T>> {
499 if (this.trav >= this.items.length) {
500 return {value: null, done: true};
501 }
502 const item = this.items[this.trav];
503 this.trav++;
504 return {value: deepClone(item), done: false};
505 }
506}
507
508class FunctionCallIterator<T> extends LazyIterator<T> {

Callers

nothing calls this directly

Calls 1

deepCloneFunction · 0.90

Tested by

no test coverage detected