WeCodeAcademy

Get the unique values of an array

Put the array in a Set, then spread it back into an array.

Examplejavascript
Open in editor »

More JavaScript recipes