Created
April 15, 2018 12:51
-
-
Save dubzzz/8b2e3b5bc9878a0547a4a8469dd3360e to your computer and use it in GitHub Desktop.
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
'\u{1f431}' // result: '🐱' | |
'\u{1f431}'.length // result: 2 | |
'\u{1f431}'.split('') // result: ['\ud83d', '\udc31'] | |
encodeURIComponent('\u{1f431}') // result: '%F0%9F%90%B1' | |
encodeURIComponent('\u{1f431}'.charAt(0)) // error: URIError: malformed URI sequence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment