MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / toHex

Function toHex

lib/sanitize-html.js:2259–2262  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

2257}
2258
2259function toHex (n) {
2260 if (n < 16) return '0' + n.toString(16)
2261 return n.toString(16)
2262}
2263
2264function utf8ToBytes (string, units) {
2265 units = units || Infinity

Callers 1

hexSliceFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected