Created
June 10, 2017 01:16
-
-
Save Daniel-Hug/83fdc8d025f056e4e9ff32d17f07bdb3 to your computer and use it in GitHub Desktop.
JS function: get unique items from collection
This file contains 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
function uniques(iterable) { | |
return Array.from(new Set(iterable)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment