MCPcopy
hub / github.com/tldraw/tldraw / format

Function format

apps/examples/src/misc/diff.ts:1–6  ·  view source on GitHub ↗
(prefix: string, key: string)

Source from the content-addressed store, hash-verified

1function format(prefix: string, key: string) {
2 if (prefix && prefix !== '') {
3 return `${prefix}/${key}`
4 }
5 return key
6}
7
8export function getDiff(prev: any, next: any, prefix = '', diff: any = {}) {
9 const allKeys = new Set([...Object.keys(prev), ...Object.keys(next)])

Callers 4

getDiffFunction · 0.70
DocsArticleInfoFunction · 0.50
formatWithPrettierFunction · 0.50
writeCodeFileFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…