Read the question before marking it as repeated, thank you.
What I need is that if there are duplicate elements in the array, delete them all. The array is something similar to this:
var array = [[1,2], [2,3], // repetido [3,4], [4,5], [2,3], // repetido [5,6], [6,7], // repetido [6,7], // repetido [7,8]]
so it would look like this:
var array = [[1,2], [3,4], [4,5], [5,6], [7,8]]
There may be at least 1000 values in the array, so nesting a for loop in another, and checking value for value is not efficient, the browser is closed and the processor is set to 90%