array_first_index

pub fun array_first_index(array, value): Num

Returns index of the first value found in the specified array.

If the value is not found, the function returns -1.

array_search

pub fun array_search(array, value): [Num]

Searches for a value in an array and returns an array with the index of the various items.

includes

pub fun includes(array, value)

Checks if a value is in the array.