Last active
January 22, 2021 12:42
-
-
Save michaelrhodes/d9d8dbe81477bbed79632ea41eacaa2d to your computer and use it in GitHub Desktop.
[usage] str.split('').map(monospace).join('')
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
monospace = chr => /\s/.test(chr) ? chr : String.fromCharCode(65296 + (chr.charCodeAt(0) - 48)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment