xdmp.arrayValues( Array as Array, [flatten as Boolean] ) as ValueIterator
Returns the array values as a ValueIterator.
Parameters | |
---|---|
Array | An array. |
flatten | Include values from subarrays in the sequence. The default is false, meaning that subarrays are returned as array values. |
var a = ["hello","world",["one","two"]]; xdmp.arrayValues(a) => ("hello", "world", ["one", "two"])
var a = ["hello","world",["one","two"]]; xdmp.arrayValues(a,true) => ("hello", "world", "one", "two")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.