MCPcopy Index your code
hub / github.com/chavyleung/scripts / update

Function update

box/chavy.boxjs.js:993–1005  ·  view source on GitHub ↗
(obj, path, value)

Source from the content-addressed store, hash-verified

991}
992
993function update(obj, path, value) {
994 const keys = path.split('.')
995 let current = obj
996
997 for (let i = 0; i < keys.length - 1; i++) {
998 if (!current[keys[i]]) {
999 current[keys[i]] = {}
1000 }
1001 current = current[keys[i]]
1002 }
1003
1004 current[keys[keys.length - 1]] = value
1005}
1006
1007// 自定义并发控制函数
1008async function limitConcurrency(tasks, limit) {

Callers 1

apiUpdateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…