MCPcopy
hub / github.com/premieroctet/openchakra / generateId

Function generateId

src/utils/generateId.ts:1–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export const generateId = () => {
2 return `comp-${(
3 Date.now().toString(36) +
4 Math.random()
5 .toString(36)
6 .substr(2, 5)
7 ).toUpperCase()}`
8}

Callers 4

recursive.test.tsFile · 0.90
cloneComponentFunction · 0.90
addComponentFunction · 0.90
ComposerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected