Created
February 14, 2018 12:36
-
-
Save damirka/8b92252669746e6644a1289083b31ad7 to your computer and use it in GitHub Desktop.
Luv it <3
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 toHex(s) { | |
var hex = ‘’; | |
for (var i=0;i<s.length;i++) { hex += ‘’+s.charCodeAt(i).toString(16); } | |
return `0x${hex}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment