#reverse
Returns the string or array with its elements in reverse order.
#reverse(value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string | array |
The string or array to reverse. |
Returns
Section titled “Returns”string | array
Examples
Section titled “Examples”Reverse a string and an array
Section titled “Reverse a string and an array”{ "text": "abc", "items": [ 1, 2, 3 ]}{ "text": "#reverse($.text)", "items": "#reverse($.items)"}{ "text": "cba", "items": [ 3, 2, 1 ]}