array.get

This function gets an item, specified by its index, from an array.

Syntax

array.get(items, index)

Arguments

Argument

Type

Description

items

array of type any

Input array of any type

index

int

Array index/position you want to get the value of

Returns

Type

Description

any

The array item present at the specified index/position

Examples

The function array.get(array.create("item1","item2"), 1) returns item2.