ArrayReverse()

Returns a new array, with all the elements reversed

ArrayReverse( array=array );

Returns: Array

Argument Description
array
array, required

the array to reverse

Examples

Reverse the order of an array

numbers = [ 1, 2, 3, 4 ];

arrayReverse(numbers); Dump( numbers ); //[4,3,2,1]

//member function reversed = numbers.reverse(); Dump( reversed );

See also