MCPcopy
hub / github.com/ZToolsCenter/ZTools / set

Function set

src/main/utils/lanzou.ts:351–356  ·  view source on GitHub ↗
(obj, prop, value)

Source from the content-addressed store, hash-verified

349 return value
350 },
351 set(obj, prop, value) {
352 const fullPath = path ? `${path}.${String(prop)}` : String(prop)
353 accessLog.push(`[设置属性] ${fullPath} = ${JSON.stringify(value).slice(0, 100)}`)
354 obj[prop] = value
355 return true
356 }
357 })
358 }
359

Callers

nothing calls this directly

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected