Transposes the elements of an array: the first array element becomes the last and the last becomes the first.
| Method of Array | |
| Implemented in: | JavaScript 1.1, NES 2.0 |
| ECMA Version: | ECMA-262 |
The reverse method transposes the elements of the calling array object in place, mutating the array.
Page last modified 15:01, 5 Aug 2007 by Mgjbot