I am working with Titanium, my code looks like this:
var currentData = new Array(); if(currentData[index]!==\"\"||currentData[index]!==null||currentData[ind
If you are looking for some thing like this.
Here is the following snippetr
var demoArray = ['A','B','C','D']; var ArrayIndexValue = 2; if(demoArray.includes(ArrayIndexValue)){ alert("value exists"); //Array index exists }else{ alert("does not exist"); //Array Index does not Exists }