ArrayIndexExists

Returns whether there exists an item in the array at the selected index.

ArrayIndexExists( array, index )

Returns: Boolean

Argument Description
array
array, required

The array to search

index
number, required

The index which to check

Examples

Check if index exists in array

fruitArray = ['apple', 'kiwi', 'banana', 'orange', 'mango', 'kiwi'];
dump(arrayIndexExists(fruitArray,3));
// member function
dump(fruitArray.indexExists(3));

See also