Gets the collection as an array in reverse order.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function reverse () |
Array. The underlying array data structure of the collection in reverse order.
The following code creates a new Array with the reversed items in a DecorationLayer decorations property. The decorations property is of type ObservableCollection, which derives from IEnumerable.
JavaScript Copy Code |
---|
var m = MindFusion.; var markers = new m.DecorationLayer("Images"); // create some markers with images mark = new m.Marker(); var reversedItems = markers.decorations.reverse(); |