Skip to content

Instantly share code, notes, and snippets.

@codfish
Last active November 20, 2018 03:55
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 codfish/9b68dcb2273cf2b17f1f1530301de73b to your computer and use it in GitHub Desktop.
Save codfish/9b68dcb2273cf2b17f1f1530301de73b to your computer and use it in GitHub Desktop.
Remove duplicate values from an array by converting it to a Set, then back to an array.
[...new Set([].concat(...arrayName))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment