August 2010
1 post
1 tag
[JS] Fastest way for searching a monodimensional...
var myAr = ['apple', 5, 6];
if(String('^' + myAr.join('^')).indexOf("^5") != -1)
console.log("found!");
else
console.log("not found :(");