Created
August 16, 2017 09:45
-
-
Save alex-cory/9dbc5b05ab3a97803cba4a39c22f9245 to your computer and use it in GitHub Desktop.
Remove duplicates from array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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