Loading TOC...

ValueIterator.next

ValueIterator.next() as Object

Summary

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

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

Comments

  • What does it return if there is no "next()"? I assume null? Either way it should be included in the docs
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy