I am working with Titanium, my code looks like this:
var currentData = new Array(); if(currentData[index]!==\"\"||currentData[index]!==null||currentData[ind
Use typeof arrayName[index] === 'undefined'
typeof arrayName[index] === 'undefined'
i.e.
if(typeof arrayName[index] === 'undefined') { // does not exist } else { // does exist }