Search
IEnumerable.removeRange Method
See Also
 






Removes a range of elements starting from the given index.

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

 Syntax

JavaScript  Copy Code

function removeRange (index, count)

 Parameters

index

Number. The starting index of the range.

count

Number. The length of the range.

 Example

The 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