Skip to content

Instantly share code, notes, and snippets.

@Andrews54757
Created February 3, 2017 23:21
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 Andrews54757/344cbb1c899287e2ec6ce95f92f6c90c to your computer and use it in GitHub Desktop.
Save Andrews54757/344cbb1c899287e2ec6ce95f92f6c90c to your computer and use it in GitHub Desktop.
Test
function toNum(a) {
return parseInt(a.join(""),2);
}
function toBin(a) {
return a.toString(2).split("")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment