MCPcopy Index your code
hub / github.com/codemix/graph / jsonClone

Function jsonClone

packages/graph/src/AsyncGraph.ts:11–13  ·  view source on GitHub ↗

* Serialize a value to JSON and back. Alias for JSON.parse(JSON.stringify(value)). * Used where we explicitly want JSON serialization behavior.

(value: T)

Source from the content-addressed store, hash-verified

9 * Used where we explicitly want JSON serialization behavior.
10 */
11function jsonClone<T>(value: T): T {
12 return JSON.parse(JSON.stringify(value));
13}
14
15export interface AsyncQuery {
16 "@type": "AsyncQuery";

Callers 2

queryMethod · 0.85
handleAsyncQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected