Returns the index of the first element equal to element.
the first matching index, or -1 when no match exists.
value to search for.