Cool, it now becomes.
Array.prototype.unique = function() {
var outArray = new Array();
this.each(function(val) {
outArray.include(val);
});
return outArray;
}
On Wed, Dec 23, 2009 at 12:14 PM, Sanford Whiteman <
[email protected]> wrote:
> > if (!outArray.contains(val)) {
> > outArray.push(val);
> > }
>
> You could use Array.include here.
>
> -- Sandy
>
>
