find Index
If the array is empty, -1 is returned.
Return
the index of the first occurrence of the element
Parameters
element
the element to search for
array
the array to search in
If the array is empty or the element is not found, -1 is returned.
Return
the index of the first occurrence of the element
Parameters
element
the element to search for
array
the array to search in