Array remove function


remove

array. remove

(index)

Removes the entry at the given index. All entries after the index are moved down one.

Parameters:

index - index of the entry to be removed.

Returns:

This function has no return value.

Example

array.add("one")

array.add("two")

array.add("three")

// array now contains three items. array[0] is "one",

// array[1] is "two", and array[2] is "three".

array.remove(1)

// array now contains two items. array[0] is "one",

// and array[1] is "three".



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*