Skip to content

Instantly share code, notes, and snippets.

@michaelrhodes
Last active January 22, 2021 12:42
Show Gist options
  • Save michaelrhodes/d9d8dbe81477bbed79632ea41eacaa2d to your computer and use it in GitHub Desktop.
Save michaelrhodes/d9d8dbe81477bbed79632ea41eacaa2d to your computer and use it in GitHub Desktop.
[usage] str.split('').map(monospace).join('')
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