MarkLogic 12 EA 1 Product Documentation
ValueIterator.nextValueIterator.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;
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.