MarkLogic 9 Product Documentation
Sequence functions

The table below lists all the Sequence built-in functions (in this namespace: Sequence).

Sequence is a subtype of Value.

A JavaScript Iterable object for iterating over MarkLogic values. MarkLogic functions that can return multiple items return a Sequence. For more details, see Sequence in the JavaScript Reference Guide.
6 functions
Function name Description
Sequence.from Create a Sequence object from an array-like or iterable object.
Sequence.prototype.@@iterator Return an iterator object.
Sequence.prototype.toArray Return an array containing the values in the Sequence.
Sequence.toObject This is inherited from the Value object. Return a JavaScript object value.
Sequence.toString This is inherited from the Value object. The atomic value of the object (for example, of the Node).
Sequence.valueOf This is inherited from the Value object. The atomic value of the object (for example, of the Node).
Powered by MarkLogic Server | Terms of Use | Privacy Policy