MCPcopy Create free account
hub / github.com/6dylan6/jdpro / uuid

Function uuid

function/magic.js:89–94  ·  view source on GitHub ↗
(x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

Source from the content-addressed store, hash-verified

87$.defaults.headers['Accept-Encoding'] = "gzip, deflate, br";
88
89function uuid(x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") {
90 return x.replace(/[xy]/g, function (x) {
91 const r = 16 * Math.random() | 0, n = "x" === x ? r : 3 & r | 8;
92 return n.toString(36)
93 })
94}
95
96class Env {
97 constructor(name) {

Callers 2

magic.jsFile · 0.85
uuidMethod · 0.85

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected