How to check if an array index exists or not in javascript?

I am working with Titanium, my code looks like this: var currentData = new Array(); if(currentData[index]!==””||currentData[index]!==null||currentData[index]!==’null’) { Ti.API.info(“is exists ” + currentData[index]); return true; } else { return false; } I am passing an index to the currentData array. I still can’t detect a non-existing index using the above code. 21 Answers 21

Xamarin 2.0 vs Appcelerator Titanium vs PhoneGap [duplicate]

This question already has answers here: Comparison between Corona, Phonegap, Titanium (14 answers) Closed 7 years ago. After all IDE evolutions (all platforms on topic are changed) of this year, i’m looking to understand what is the state of technology for those platforms. What are strengths and weaknesses of each ones? There are some limitations … Read more