Checks whether this list contains an element equal to element.
true if indexOf finds a match.
value to search for.