Skip to content

Instantly share code, notes, and snippets.

@gatlin
Last active May 31, 2023 18:42
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 gatlin/18aad8563d9470ca2a14bcc87a86299c to your computer and use it in GitHub Desktop.
Save gatlin/18aad8563d9470ca2a14bcc87a86299c to your computer and use it in GitHub Desktop.
'use strict';
let str = "the quick brown fox jumps over the lazy dog";
let fw = Array.prototype.map
.call(str, (c) => c === ' '
? ' '
: String.fromCodePoint(c.codePointAt(0) + 0xFEE0))
.join('');
console.log(fw);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment