array.delete

This function deletes a specific index of item in an array.

Syntax

array.delete(items, index)

Arguments

Argument

Type

Description

items

array of type any

Array from which the specified index of item needs to be deleted

index

int

Index of 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].