I am working with Titanium, my code looks like this:
var currentData = new Array(); if(currentData[index]!==\"\"||currentData[index]!==null||currentData[ind
When trying to find out if an array index exists in JS, the easiest and shortest way to do it is through double negation.
let a = []; a[1] = 'foo'; console.log(!!a[0]) // false console.log(!!a[1]) // true