Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Array.prototype.unique = function(){
for(var a in this)
for(var b in this)
if(this[a] === this[b] && a !== b)
delete this[b];
}



Attempted duplication of the PHP function. This will remove any of the objects in an array that are identical, but it will leave the original. :P This might mess up the numbers, but I'm not sure. Never really tried with it.

newBookmarkLockedFalling