Skip to content

Instantly share code, notes, and snippets.

@eschaefer
Last active March 31, 2019 13:56
Show Gist options
  • Save eschaefer/43a85800ed8e18510241d75f88a2a36f to your computer and use it in GitHub Desktop.
Save eschaefer/43a85800ed8e18510241d75f88a2a36f to your computer and use it in GitHub Desktop.
Clean way of removing duplicates from an array
const duped = [1, 2, 3, 3, 3, 2, 1];
const deduped = [...new Set(duped)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment