lastIndexOf

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

Get index of the last occurrence of an object.

Return

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

Parameters

object

Object to search for.