Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DoctorDerek/3c3c7b5c21b67cabd7bdf4e15a16df66 to your computer and use it in GitHub Desktop.
Save DoctorDerek/3c3c7b5c21b67cabd7bdf4e15a16df66 to your computer and use it in GitHub Desktop.
Use Set to make an Array with the ... spread operator as a one-liner
[...new Set([3, 4, 5, 5])] // [3,4,5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment