Skip to content

Instantly share code, notes, and snippets.

@alex-cory
Created August 16, 2017 09:45
Show Gist options
  • Save alex-cory/9dbc5b05ab3a97803cba4a39c22f9245 to your computer and use it in GitHub Desktop.
Save alex-cory/9dbc5b05ab3a97803cba4a39c22f9245 to your computer and use it in GitHub Desktop.
Remove duplicates from array
var uniq = ar => Array.from(new Set(a))
var uniq = ar => [...new Set(a)]
// Others: https://stackoverflow.com/a/9229821/2782583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment