Created
March 31, 2020 23:55
-
-
Save manakuro/3b49fd4468b590a8af283e5ccc6e9bbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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