myArray = Array(/*element1, element2, etc...*/); // If the array 'myArray' contains the element 'valueWeSearch' if(myArray.includes(valueWeSearch)) { // Do something }