Loading TOC...

ValueIterator.next

ValueIterator.next() as Object

Summary

[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.

Example

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

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