MCPcopy
hub / github.com/hmjz100/LinkSwift / cloneDeep

Function cloneDeep

(改)网盘直链下载助手.user.js:2086–2088  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

2084 }
2085 ];
2086 function cloneDeep(item) {
2087 return JSON.parse(JSON.stringify(item));
2088 }
2089 function fillMissingFields(target, source) {
2090 // 如果 target 不存在,直接返回 source 的深拷贝
2091 if (target === null || target === undefined) {

Callers 2

fillMissingFieldsFunction · 0.85
initDefaultConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected