arrayContains = (array, value, compareValues) =>
  array.some(item => compareValues(item, value) !== false)
Returns true if the given array contains the value, false
otherwise. The compareValues function must return false to
indicate a non-match.