AAMergeRelativeArray
Just a function to merge arrays that have the same element.
var arr = [ [1,2], [5], [1,3] ];
var result = mergeRelativeArray(arr,1); // => result is [ [1,2,3], [5] ]
Just a function to merge arrays that have the same element.
var arr = [ [1,2], [5], [1,3] ];
var result = mergeRelativeArray(arr,1); // => result is [ [1,2,3], [5] ]