Returns the last element in the collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
SyntaxJavaScript
Copy Code
|
|---|
function last () |
Object. The last element in the collection.
ExampleThe following code checks if the last item in the collection of items of a ListView before the collection was changed is an object called _item:
JavaScript
Copy Code
|
|---|
listView.selectionChanged.addEventListener(listSelectionChanged);
if( args.oldItems.items().last() == _item) |
See Also