JSFiddle - React, Tailwind, and code Playground

JavaScript

var statesArray = [10, 15, 19]; // list out all
var state = 19;

var index = $.inArray(state, statesArray);

if(index == -1) {
    console.log("Not there in array");
} else {
    console.log("Found it");
}