Skip to content

Instantly share code, notes, and snippets.

@adambene
Created July 2, 2020 23:31
Show Gist options
  • Save adambene/443775c0a2f92e6e036ae2bf6e37f8db to your computer and use it in GitHub Desktop.
Save adambene/443775c0a2f92e6e036ae2bf6e37f8db to your computer and use it in GitHub Desktop.
function distinctPreserveOrder(items) {
return [...new Set(items)];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment