ได้ถ้ามันมีคูณค่าที่ว่าตารางคู่ลำดับของโหนด js
myArray = Array(/*element1, element2, etc...*/);
// If the array 'myArray' contains the element 'valueWeSearch'
if(myArray.includes(valueWeSearch))
{
// Do something
}
js ตรวจสอบว่าอาเรย์มีค่า
return arrValues.indexOf('Sam') > -1