📅  最后修改于: 2022-03-11 15:03:29.938000             🧑  作者: Mango
myArray = Array(/*element1, element2, etc...*/);
// If the array 'myArray' contains the element 'valueWeSearch'
if(myArray.includes(valueWeSearch))
{
// Do something
}