This project is read-only.

reverse()

Inverts the order of the elements in a sequence.

Syntax

Return Value

A sequence whose elements correspond to those of the input sequence in reverse order.

Examples

var apple = "apple";
var reversed = $from(apple).reverse();

reversed.each("document.writeln($ + ' ')");

/*
 This code produces the following output:

 e l p p a
*/

Last edited May 18, 2012 at 2:02 AM by suckgamoni, version 1

Comments

No comments yet.