@rootAug 28.2014 — #indexOf() certainly does work, my MSIE browser is version 8, you must be doing something wrong.
[CODE]var str="CSMTestPWXListinerService,CSMTestPWXListinerService_ManualyAdded"; console.log(str.indexOf(","));[/CODE] returns LOG:25 in my IE8 Console Log
@TcobbAug 28.2014 — #You haven't really specified what this is supposed to do other than the fact it can be an N-D array. This may not be what you want, but here it is. The function returns true if the requested is present in the array and false if it isn't. The number of dimensions in the array or their symmetry is immaterial.
[CODE]function isThere(arr, sought){ var len, list, holder, flag; if(!Array['mark']){ //we have to be able to ID arrays from object-objects Array.prototype.mark = true; }
holder = arr;
do{ flag = false; list = holder; holder = [];
len = list.length; while(len--){ if(list[len]['mark']){ //if its an array holder = holder.concat(list[len]); flag = true; continue; } if(list[len] === sought){ //the value does occur in the array return true; } } } while(flag); return false; }[/CODE]