var arr = [[1, 2], [2, 4], [12, 65], [2,1], [34, 18], [65, 12]], newArr = arr.filter(el=> arr.some(x=>(x.slice().reverse()+'') == (el+''))); console.log(newArr);