Removes a range of elements starting from the given index.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
SyntaxJavaScript
Copy Code
|
|---|
function removeRange (index, count) |
Number. The starting index of the range.
Number. The length of the range.
ExampleThe following code checks if the count of items in a ListView is more than 100 and if yes, removes the first 50 elements:
JavaScript
Copy Code
|
|---|
| if (listView.items().count()>100) listView.items().removeRange(0, 50); |
See Also