Input:
[[-1,-1,2],[-1,0,1],[-1,-1,2],[-1,0,1],[-1,-1,2],[-1,0,1],[-1,0,1]]
The output I want:
[[-1,-1,2],[-1,0,1]] <
[[-1,-1,2],[-1,0,1]]
There's already a good utility for that, try Lodash, one of the function of it is _.uniqWith, with that function you can do the following.