How to check a string within a array using javascript. I am getting error in if statement. I need to verify that a string or index of a string in present in array.
var arraylist=new ReadExcel();
var TotalArray=arraylist.myarray;
var objcid=new getObjectId(tblTestStepId);
var TestSuiteNo = objcid.getTestSuiteNo;
if(TotalArray.indexOf(TestSuiteNo)>=-1)
{
Log.Message("Hello")
}
Aucun commentaire:
Enregistrer un commentaire