Remove duplicates in JavaScript array

[...new Set(arr)]