Curried predicate which checks that a value exists in an array. Generally faster than `indexOf` across JS engines.