Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GamerHack/GamerHack.github.io
/ hex
Function
hex
restore/702/utils.js:19–21 ·
view source on GitHub ↗
(b)
Source
from the content-addressed store, hash-verified
17
18
// Return the hexadecimal representation of the given byte.
19
function
hex(b) {
20
return
(
'0'
+ b.toString(16)).substr(-2);
21
}
22
23
// Return the hexadecimal representation of the given byte array.
24
function
hexlify(bytes) {
Callers
1
hexlify
Function · 0.70
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected