Skip to content

format

typescript
List.RemoveRange(index, count)

class: List

description

Removes a specified range of elements from the list.

parameter

param_nametypedescription
indexnumberThe starting position index.
countnumberThe number of elements to remove.

reture

typedescription
void

code example

typescript
let list = new List<Number>(Number);
list.AddRange([100, 200,300]);
// Remove two elements starting from the element at index 1
list.RemoveRange(1,2);