MCPcopy 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
69function 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
77export default UUID;

Callers 2

UUIDv1Function · 0.85
UUIDv4Function · 0.85

Calls 2

sliceMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected