I have an array which holds an arrays of data and values. I am running in to a problem of figuring out the unique array based on those data I have.
ex:
var x =[[1,2,3,abc],[3,4,5,xyz],[5,6,7,abc]];
I wanted:
var y =[[6,8,10,abc],[3,4,5,xyz]];
so I had this feeling to loop through the first array to check the possible match of the text and add the corresponding value and return the integrated array.
need some help to understand these logic.
appreciated any help.