Éléments JavaScript Eliminar Repetidos

var arr = [1,2,3,4,1,2,3,1,2,3]

var uniqueArr = [...new Set(arr)]

console.log(uniqueArr)
Condemned Cormorant