Skip to content

Instantly share code, notes, and snippets.

@Daniel-Hug
Created June 10, 2017 01:16
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 Daniel-Hug/83fdc8d025f056e4e9ff32d17f07bdb3 to your computer and use it in GitHub Desktop.
Save Daniel-Hug/83fdc8d025f056e4e9ff32d17f07bdb3 to your computer and use it in GitHub Desktop.
JS function: get unique items from collection
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