Skip to content

Instantly share code, notes, and snippets.

@zph
Created February 11, 2014 15:06
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 zph/8936542 to your computer and use it in GitHub Desktop.
Save zph/8936542 to your computer and use it in GitHub Desktop.
replaceDoubleByteChars: (str) ->
result = for char in str.split('')
@charMap[char.charCodeAt(0)] || char
result.join('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment