(obj, path, value)
| 991 | } |
| 992 | |
| 993 | function 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 | // 自定义并发控制函数 |
| 1008 | async function limitConcurrency(tasks, limit) { |
no outgoing calls
no test coverage detected
searching dependent graphs…