Get index of the first occurrence of an object.
Index of the first occurrence of the object or -1 if no such object found.
-1
Object to search for.