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");
const 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.


  • What does it return if there is no "next()"? I assume null? Either way it should be included in the docs