Forum Discussion
HKosova
Alumni
12 years agoHi Keith,
JScript arrays don't have the indexOf method, but you can use a function like this:
JScript arrays don't have the indexOf method, but you can use a function like this:
...
if (indexOf(SiteAccess, AllSites) == -1)
...
function indexOf(arr, item)
{
for (var i = 0; i < arr.length; i++)
{
if (arr === item) { return i; }
}
return -1;
}