Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ to_hex
Function
to_hex
test/fixtures/wpt/common/utils.js:92–98 ·
view source on GitHub ↗
@private
(x, length)
Source
from the content-addressed store, hash-verified
90
91
/** @private */
92
function
to_hex(x, length) {
93
var
rv = x.toString(16);
94
while
(rv.length < length) {
95
rv =
"0"
+ rv;
96
}
97
return
rv;
98
}
Callers
1
token
Function · 0.85
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected