Skip to content

Instantly share code, notes, and snippets.

@wehrhaus
Created June 22, 2018 15:45
Show Gist options
  • Save wehrhaus/8866599e9e2e6bf5a6ed6a34ed1bfc0f to your computer and use it in GitHub Desktop.
Save wehrhaus/8866599e9e2e6bf5a6ed6a34ed1bfc0f to your computer and use it in GitHub Desktop.
Return binary of sum of numbers
const addBinary = (...n) => n.reduce((acc, cur) => acc + cur).toString(2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment