Loading TOC...


ValueIterator.next() as Object


[DEPRECATED: Only available for type checking; use Sequence instead.] Advance the iterator to obtain the next value.

Usage Notes

for...of loop is the recommended way of iterating through a ValueIterator. For forward compatibility sake, avoid using ValueIterator.prototype.next() in favor of for...of loop.


const hits = cts.search("love");
let uris = [];
for (const hit of hits) uris.push(hit.nodeUri);

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.