Returns the first index whose element equals element, or -1 when no match exists.
Searches from index zero and stops at the first match, using generic element equality.
the first matching index, or -1.
value to search for.