Skip to content

Instantly share code, notes, and snippets.

@jozsefs
Created October 6, 2017 09:18
Show Gist options
  • Save jozsefs/27b8c644b7ba550c397828f404f1d30a to your computer and use it in GitHub Desktop.
Save jozsefs/27b8c644b7ba550c397828f404f1d30a to your computer and use it in GitHub Desktop.
find unique number in array with pairs present
[1,2,2,1,3,3,4,5,5,0,0,6,7,6,7].reduce((acc, next) => acc ^ next, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment