A-C > Array.reverse |  |

Array.reverse

array.reverse, reverse

Availability

Flash Player 5.

Usage

    myArray.reverse()

Parameters

None.

Returns

Nothing.

Description

Method; reverses the array in place.

Example

The following is an example of using the `Array.reverse` method.

    var numbers = [1, 2, 3, 4, 5, 6];
    trace(numbers.join());
    numbers.reverse();
    trace(numbers.join());

Output:

    1,2,3,4,5,6
    6,5,4,3,2,1