MCPcopy
hub / github.com/baidu/amis / injectObjectChain

Function injectObjectChain

packages/amis-core/src/utils/object.ts:70–74  ·  view source on GitHub ↗
(obj: any, value: any)

Source from the content-addressed store, hash-verified

68 * @returns
69 */
70export function injectObjectChain(obj: any, value: any) {
71 const chain = extractObjectChain(obj);
72 chain.splice(chain.length - 1, 0, value);
73 return createObjectFromChain(chain);
74}
75
76export function cloneObject(target: any, persistOwnProps: boolean = true) {
77 const obj =

Callers 6

runActionFunction · 0.90
initDataFunction · 0.90
constructorMethod · 0.90
componentDidMountMethod · 0.90
reloadMethod · 0.90
handleActionMethod · 0.90

Calls 2

extractObjectChainFunction · 0.85
createObjectFromChainFunction · 0.85

Tested by

no test coverage detected