MCPcopy Index your code
hub / github.com/devspace-sh/devspace / uuidv4

Function uuidv4

ui/src/lib/utils.tsx:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135};
136
137export const uuidv4 = () => {
138 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
139 const r = (Math.random() * 16) | 0,
140 v = c === 'x' ? r : (r & 0x3) | 0x8;
141 return v.toString(16);
142 });
143};
144
145export const customSort = (prop: string | string[], direction: 'asc' | 'desc', arr: any[]) => {
146 return arr.sort((a, b) => {

Callers 1

InteractiveTerminalClass · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected