Created
July 18, 2017 17:07
-
-
Save Raphy42/da701c0f47b68aefd451672339fbcb74 to your computer and use it in GitHub Desktop.
Base 10 to shadok converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shadok = n => parseInt(n) | |
.toString(4) | |
.split('') | |
.map(e => ['ga', 'bu', 'zo', 'meu'][e]) | |
.join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wonderful example of the expressivity of Javascript. Starred.