Check out example codes for "remove duplicates from a list of lists python". It will help you in understanding the concepts better.

Code Example 1

k = [[1, 2], [4], [5, 6, 2], [1, 2], [3], [4]]
new_k = []
for elem in k:
    if elem not in new_k:
        new_k.append(elem)
k = new_k
print k
# prints [[1, 2], [4], [5, 6, 2], [3]]

Learn ReactJs, React Native from akashmittal.com