MCPcopy Create free account
hub / github.com/vercel/examples / tryName

Function tryName

python/vibe-coding-ide/frontend/src/context/ProjectsContext.tsx:1119–1120  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

1117 )
1118 const base = (newName || source.name || 'Project').trim()
1119 const tryName = (n: number) =>
1120 n === 1 ? `${base} Copy` : `${base} Copy ${n}`
1121 let nameCandidate = tryName(1)
1122 for (
1123 let i = 1;

Callers 1

ProjectsProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected