Loading TOC...

ValueIterator.toArray

ValueIterator.toArray() as Value[]

Summary

[DEPRECATED: Only available for type checking; use Sequence instead.] Return an array containing the values in the value iterator.

Example

// Get the lines of a song
const node = cts.doc("song.xml");
node.xpath(".//LINE").toArray();

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.