my arr4 array values are 11,11,11,12,12,12. I want to delete duplicate values and i want to get output 11,12 (after delete duplicate values).but using this code I got output 12 only

```
 var g:int = 0;
    var arr4:Array = new Array();
        while(g < arr4.length) {
       while(g < arr4.length+1 && arr4[g] == arr4[g+1]) {
           arr4.splice(g, 1);
       }
        g++;
        }

```

Please help me