Lotus Software logo
IBM Lotus Domino Designer 8.5
Versions 8.5, 8.5.1, 8.5.2, and 8.5.3






reverse (JavaScript)

Reverses the order of the elements of an array.

Defined in

Array (JavaScript)

Syntax

reverse() : void

Usage

This method modifies the base array.

Examples

This computed label reverses the elements of an array.
var a = new Array("one", "two", "three");
a.reverse();
var display = "";
for(var i=0; i<a.length; i++) {
	display = display + a[i] + " ";
}
display // three two one 



Library | Support | Terms of use |

Last updated: Tuesday, September 20, 2011