I'm trying to remove duplicates objects present in array. here is my object look like my object contain following properties:
function cell(cell_id,x,y){
this.cell_id = cell_id;
this.x = x;
this.y = y;
}
var cellArray = new Array();
which will contain "cell objects" data, and here are my cell's information
{cell_id:'a',x:250,y:45} -
{cell_id:'b',x:145,y:256}
{cell_id:'a',x:123,y:356}
like that even though the values of x and y differs but I still thinks cell number 3 is a duplicate of cell number 1. I checked following qn's but they didn't helped for me Removing duplicate objects Remove Duplicates from JavaScript Array Thanks in advance.