I have an arrayList with objects in it. I need to show only one value, if objects has the same values.

For Example : [ {a:0,b:1},{a:1,b:0},{a:0,b:1} ] 
From the above example I need to show only the first and second object and skip the third object because it is as same as first object. 

Note : the objects in array can be infinite, I cant hardcode the index value. Can anyone help me out the generic solution.

This is what I have tried:

```
points = [];
newarr = [];
locArray = [ {a:0,b:1},{a:1,b:0},{a:0,b:1} ];

if(abc!=null){
removeDuplicateCoordinates();
                        $.each(newarr,function(key,val){
                           points.push([val.a,val.b]);

                        });

}

function removeDuplicateCoordinates(){
                var arr = locArray;
                $.each(arr, function(index,item){
                    if(searchForItem(newarr,item)<0){
                        newarr.push(item);
                    }
                });
            }
            function searchForItem(array, item){
                var i, j, current;
                for(i = 0; i < array.length; ++i){
                    if(item.length === array[i].length){
                        current = array[i];
                        for(j = 0; j < item.length && item[j] === current[j]; ++j);
                        if(j === item.length)
                            return i;
                    }
                }
                return -1;
            }

```