Is there a way to check to see if one number matches any number in an array without looping through the array in a for loop?
for example
instead of
maybe do something like thisCode:for(i=0; i<myArray.length, i++)
{
if(a == myArray[i]){//doThis}else{}
}
if(a == myArray){doThis}
although this doesn't work, is there a syntax that allows for this?