Last active
April 15, 2016 02:51
-
-
Save tkheyfets/d8cc94c6a029f8c0bffcf4e051fe496f to your computer and use it in GitHub Desktop.
This file contains 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 sortedUnion = (a, b) => { | |
const c = {}; | |
[...a, ...b].forEach(i => c[i] = i); | |
return Object.keys(c); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment