hasElement

If the array is empty, -1 is returned.

Return

true if an instance of the element is found

Parameters

element

the element to search for