Tests if the vector contains the specified element.

This function effectively is the same as the expression:

v.indexOf(elem) >= 0

Note: The null vector parameter will cause an error.