JavaScript » Array » reverse

Syntax:
Array.reverse()

The reverse method, as the name implies, reverses the order of the elements in an array making the first last and the last first.