|
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](http://skins.sz-ex.com/v1/smilies/tongue.gif) This might mess up the numbers, but I'm not sure. Never really tried with it.
|
|
|
|