MCPcopy 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 */
92function 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

tokenFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected