I have this data, how can I return unique array - an array that doesn't have duplicate for every index.
[
[ 0, 1, 2 ],
[ 1, 0, 2 ],
[ 1, 1, 1 ],
[ 1, 2, 0 ],
[ 2, 0, 1 ],
[ 2, 1, 0 ]
]
my desired output would be like this
0 1 2
1 2 0
2 0 1