Skip to content

Instantly share code, notes, and snippets.

@vitkon
Created March 10, 2017 22:08
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 vitkon/7b2292dde5338541f2dca7f3008d2823 to your computer and use it in GitHub Desktop.
Save vitkon/7b2292dde5338541f2dca7f3008d2823 to your computer and use it in GitHub Desktop.
Array with unique elements (dedupication)
const unique = arr => arr.filter(
(el, index, self) => index === self.indexOf(el)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment