Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created March 31, 2020 23:55
Show Gist options
  • Save manakuro/3b49fd4468b590a8af283e5ccc6e9bbb to your computer and use it in GitHub Desktop.
Save manakuro/3b49fd4468b590a8af283e5ccc6e9bbb to your computer and use it in GitHub Desktop.
const tmp = new Set();
const filtered = lists.filter(a => !tmp.has(a.code) && tmp.add(a.code))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment