MCPcopy Create free account
hub / github.com/bugy/script-server / deepCloneObject

Function deepCloneObject

web-src/src/common/utils/common.js:555–557  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

553}
554
555export function deepCloneObject(obj) {
556 return JSON.parse(JSON.stringify(obj));
557}
558
559// Reads the text, which user sees
560// Default innerText doesn't work (on Chrome/Firefox), because <br/> is treated as double new-line

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected