indexOf

open fun indexOf(@Nullable object: Any): Int

Get index of the first occurrence of an object.

Return

Index of the first occurrence of the object or -1 if no such object found.

Parameters

object

Object to search for.