Created
September 11, 2015 05:19
-
-
Save ryankennedy/33540e44769220db4713 to your computer and use it in GitHub Desktop.
node trying to do substring on unicode
This file contains hidden or 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
$ node substring.js π πΏ | |
π πΏ.substring(0, 1) = οΏ½ | |
π πΏ.substring(0, 2) = π | |
π πΏ.substring(0, 3) = π οΏ½ | |
π πΏ.substring(0, 4) = π πΏ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment