Skip to content

Instantly share code, notes, and snippets.

@roadmapper
Created July 17, 2014 14:23
Show Gist options
  • Save roadmapper/9ac28c06cb377ec2bf9d to your computer and use it in GitHub Desktop.
Save roadmapper/9ac28c06cb377ec2bf9d to your computer and use it in GitHub Desktop.
var map = {
"s":"d", "m":"e",
"e":"h", "x":"l",
"z":"o", "i":"r",
"a":"w", "o":"!",
"-":" "
},
reverseMap = {}
for (j in map){
if (!Object.prototype.hasOwnProperty.call(map, j)) continue
reverseMap[map[j]] = j
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment