Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ hex
Function
hex
modules/base/uuid/uuid.js:69–75 ·
view source on GitHub ↗
(value, count)
Source
from the content-addressed store, hash-verified
67
}
68
69
function
hex(value, count) {
70
if
(value < 0) {
71
value = -value;
72
}
73
value = (value | 0).toString(16);
74
return
value.padStart(count,
'0'
).slice(-count);
75
}
76
77
export
default UUID;
Callers
2
UUIDv1
Function · 0.85
UUIDv4
Function · 0.85
Calls
2
slice
Method · 0.65
toString
Method · 0.45
Tested by
no test coverage detected