kotlin-stdlib / kotlin.collections / AbstractMutableList / indexOf indexOf Common 1.0 open fun indexOf(element: @UnsafeVariance E): Int(source) JS Native 1.1 open fun indexOf(element: E): Int(JS source) (Native source) Returns the index of the first occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.