I am working with Titanium, my code looks like this:
var currentData = new Array(); if(currentData[index]!==\"\"||currentData[index]!==null||currentData[ind
Simple way to check item exist or not
Array.prototype.contains = function(obj) { var i = this.length; while (i--) if (this[i] == obj) return true; return false; } var myArray= ["Banana", "Orange", "Apple", "Mango"]; myArray.contains("Apple")