ArrayIndexExists

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

Returns: boolean

Usage

ArrayIndexExists( array, index )

Arguments

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