MCPcopy
hub / github.com/github/awesome-copilot / cloneJson

Function cloneJson

extensions/site-studio/extension.mjs:428–430  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

426}
427
428function cloneJson(value) {
429 return JSON.parse(JSON.stringify(value));
430}
431
432function getTemplatePackOrThrow(packId) {
433 const id = safeString(packId, DEFAULT_TEMPLATE_PACK);

Callers 2

applyTemplatePackFunction · 0.85
createInitialStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected