indexOf

fun indexOf(searchElement: T, fromIndex: Int = definedExternally): Int(source)

Returns the index of the first occurrence of a value in an array.

Parameters

searchElement

The value to locate in the array.

fromIndex

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.