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
Optional
startIndex: numberthe array index at which to begin the search. If startIndex
is omitted, the search starts at index 0.
Optional
count: numberthe number of elements in the section to search.
Returns the index of the first occurrence of a value in an array.