MCPcopy Create free account
hub / github.com/liveblocks/liveblocks / wrapProperty

Function wrapProperty

tools/liveblocks-devtools/src/lib/stringify.ts:11–13  ·  view source on GitHub ↗
(key: string | number, value: string)

Source from the content-addressed store, hash-verified

9}
10
11export function wrapProperty(key: string | number, value: string) {
12 return `${quoteAsNeeded(key)}: ${value}`;
13}
14
15export function wrapArray(values?: string) {
16 return `[${values ?? ""}]`;

Callers 2

summarizeFunction · 0.90
stringifyFunction · 0.85

Calls 1

quoteAsNeededFunction · 0.85

Tested by

no test coverage detected