Created
December 23, 2016 14:37
-
-
Save mientjan/c261e4f6419ba773491b08e4bf91278d to your computer and use it in GitHub Desktop.
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
var people = ['(quintie)', '(miepmiep)']; | |
var people = ['(sanderk)', '(miepmiep)']; | |
` | |
######################## | |
# ## ## ## ## # | |
# # ### ## #### ### | |
# #### ## #### ### | |
# #### ## #### ### | |
# # ### ## #### ### | |
# ## ### ##### ### | |
######################## | |
`.split("\n").map(item => { | |
var arr = item.split(''); | |
arr.push("\n"); | |
return arr; | |
}).reduce((a, b) => a.concat(b)).map(item => { | |
return item == '#' ? people[0] : item === ' ' ? people[1]: item; | |
}).join(''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment