Created
July 27, 2021 10:09
-
-
Save notnotype/015ade1f310efaef8fd5654ebcd05e51 to your computer and use it in GitHub Desktop.
[JavaScript toHexString] #JavaScript
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 toHexString(bytes) { | |
return bytes.map(function(byte) { | |
return (byte & 0xFF).toString(16) | |
}).join('') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment