Array returning non-repeated numbers. How?

Hello there,

Simple. Take the array [4,6,6,7,8,8] for example.
we have the number 6 and 8 twice.

Isn’t there a method to return this array like: [4,6,7,8] ?
or, how can I push this number into the array only if they are not pushed yet?
I tryed to make a loop with condition to check if the numbers was already there, but I had no bliss.

this is my code now:

meses = [];
        arquivos = xmlData.firstChild.childNodes[0];
        //populando array meses
        for (i=0; i<arquivos.childNodes.length; i++) {
            mes = mesNome(arquivos.childNodes*.attributes.mes);
            meses.push(mes); //<<<< here I think its the problem
        }

I think the code can’t help, but, there it is. This array “meses” (months, if you prefer), returns that example I told you about: [4,6,6,7,8,8], but I needed it with unique numbers.

Some advices please =)
thanks a lot,
Deh