Created
April 29, 2015 03:08
-
-
Save JavaScript-Packer/92d8394d8220f23459f2 to your computer and use it in GitHub Desktop.
Get your characters converted to an array (comma delimited) of codepoints
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
function codepoints(Δ) { | |
return Δ.replace(/./g, function(Δ) { | |
return Δ.charCodeAt(0) + " "; | |
}).trim().replace(/ /g, ","); | |
} | |
alert(codepoints("JavaScript Packer")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment