Skip to content

Instantly share code, notes, and snippets.

@skellertor
Created July 27, 2018 06:42
Show Gist options
  • Select an option

  • Save skellertor/3a997564fe72b2e0c1c4cabf69b7cd9a to your computer and use it in GitHub Desktop.

Select an option

Save skellertor/3a997564fe72b2e0c1c4cabf69b7cd9a to your computer and use it in GitHub Desktop.
dedupe an array
[1,1,4,3,6,6,7].filter((number, index, arr) => arr.indexOf(number) === index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment