array.delete
This function deletes a specific index of an item in the array.
Syntax
array.delete(items, index)
Arguments
Argument |
Type |
Description |
---|---|---|
items |
array of type any |
Array from which the specified index of an item needs to be deleted |
index |
int |
Index of an item that needs to be deleted |
Returns
Type |
Description |
---|---|
array of type any |
An array with the specified item deleted from the array. |
Examples
The function array.delete(array.create("item1","item2"), 1)
returns [item1]
.