MCPcopy Create free account
hub / github.com/devxnshsharma/UnMessify / generateUUID

Function generateUUID

app.js:936–942  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

934// ==========================================
935
936function generateUUID() {
937 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
938 const r = Math.random() * 16 | 0;
939 const v = c === 'x' ? r : (r & 0x3 | 0x8);
940 return v.toString(16);
941 });
942}
943
944function formatDate(date) {
945 const d = new Date(date);

Callers 1

createExpenseEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected