MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / clone

Function clone

packages/overlay/src/index.tsx:142–144  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

140
141
142function clone<T>(data: T): T {
143 return typeof data === 'object' ? (JSON.parse(JSON.stringify(data)) as T) : data
144}
145function separate<T>(data: T, callback: (value: T) => void): void {
146 queueMicrotask(() => {
147 const v = clone(data)

Callers 1

separateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…