array.reverse [method]

array.reverse()

reverses the order of items in the original array, returns the original array for chaining

a = [ 1, 2, 3 ];
b = a;
a.reverse(); // a = [3,2,1]
print( b ); // prints [3,2,1]