Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DoctorDerek/3c3c7b5c21b67cabd7bdf4e15a16df66 to your computer and use it in GitHub Desktop.

Select an option

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