title: Input value equal/match to a any value in declared array with strings
body: <p>I have this JS code, I need to compare the input value with the array, if the input value match with some value in the array then show the related message, but I can't get the array values and compare them with my input value.</p>
  
  <pre><code>var invalidkeyreservation = ['ABCDEF','GHIJK','LMNOP'];
  
      if ($("input.reservationkey").val() === invalidkeyreservation) {
          BootstrapDialog.show(return $content;}
  
  
  
  
      } else{
          window.location.href = "/branches/Cancelaciones/Seleccion.html";
      }
  </code></pre>