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.
var invalidkeyreservation = ['ABCDEF','GHIJK','LMNOP'];
    if ($("input.reservationkey").val() === invalidkeyreservation) {
        BootstrapDialog.show(return $content;}
    } else{
        window.location.href = "/branches/Cancelaciones/Seleccion.html";
    }
 
     
     
     
    