Returns the index of the first occurrence of a value in an array.
the array where the search is perfomed.
the value to locate in the array
OptionalstartIndex: numberthe array index at which to begin the search. If startIndex is omitted, the search starts at index 0.
Optionalcount: numberthe number of elements in the section to search.
Returns the index of the first occurrence of a value in an array.