JavaScript eliminar itens repetidos

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

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

console.log(uniqueArr)
Condemned Cormorant