Skip to content

Instantly share code, notes, and snippets.

@DoctorDerek
Created October 30, 2020 22:20
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/4a5b9b0c3df240422390070e355717d7 to your computer and use it in GitHub Desktop.
Save DoctorDerek/4a5b9b0c3df240422390070e355717d7 to your computer and use it in GitHub Desktop.
Find unique items by making a Set from a JavaScript array as a one-liner
Array.from(new Set([37, 37, 3700, 3700])) // [37,3700]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment