Search
IEnumerable.reverse Method
See Also
 






Gets the collection as an array in reverse order.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

 Syntax

JavaScript  Copy Code

function reverse ()

 Return Value

Array. The underlying array data structure of the collection in reverse order.

 Example

The following code checks if the first item in the list of items in a ListView starts with 'z' and if yes, reverses the order of the items:

JavaScript  Copy Code
if (listView.items().item(0).startsWith("z", 0))
   listView.items().reverse();

 See Also