Skip to content

Instantly share code, notes, and snippets.

@tkheyfets
Last active April 15, 2016 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkheyfets/d8cc94c6a029f8c0bffcf4e051fe496f to your computer and use it in GitHub Desktop.
Save tkheyfets/d8cc94c6a029f8c0bffcf4e051fe496f to your computer and use it in GitHub Desktop.
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