array.reverse
This function reverses array elements.
Syntax
array.reverse(items)
Arguments
|
Argument |
Type |
Description |
|---|---|---|
|
items |
array of type any |
Input array of type any |
Returns
|
Type |
Description |
|---|---|
|
array of type any |
Reversed array |
Examples
The function array.reverse(array.create(1,2)) returns [2,1].