Can someone please look at this array. I get an error in IE that says Object doesn't support this property. Firefox loves the code now problem. Can someone please addd somewisedom to tell me how I might accomplish this in both browsers.
// Array.unique( strict ) - Remove duplicate values
function UniqueArray( b )
{
var a = []
var i
var l = b.length;
for( i=0; i<l; i++ ) {
if( a.indexOf( b, 0, b ) < 0 )
{
a.push( b );
}
}
return a;
}
// Array.unique( strict ) - Remove duplicate values
function UniqueArray( b )
{
var a = []
var i
var l = b.length;
for( i=0; i<l; i++ ) {
if( a.indexOf( b, 0, b ) < 0 )
{
a.push( b );
}
}
return a;
}