Am trying to find some text only if it contains english letters and numbers using Javascript/jQuery.
Am wondering what is the most efficient way to do this? Since there could be thousands of words, it should be as fast as possible and I don't want to use regex.
 var names[0] = 'test';
 var names[1] = 'हिन';
 var names[2] = 'لعربية';
 for (i=0;i<names.length;i++) {
    if (names[i] == ENGLISHMATCHCODEHERE) {
        // do something here
    }
 }
Thank you for your time.
 
     
     
     
     
     
    