Skip to content

Instantly share code, notes, and snippets.

@tkheyfets
Last active Apr 15, 2016
Embed
What would you like to do?
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