how to check if a value is present in an array or not in javascript code example
Example: get if there is a value in an array node js
myArray = Array(/*element1, element2, etc...*/);
// If the array 'myArray' contains the element 'valueWeSearch'
if(myArray.includes(valueWeSearch))
{
// Do something
}