(o: any, kp: string | string[], v: any)
| 22 | // 2. b = Object.assign({}, { b: { c: 1 } }, { b: c }) |
| 23 | // 3. returned = Object.assign({}, { a: { b: { c: 1 } } }, { a: b }) |
| 24 | export const deepSet = (o: any, kp: string | string[], v: any) => |
| 25 | keys(kp).reduceRight((v, k, i, ks) => Object.assign({}, deepGet(o, ks.slice(0, i)), { [k]: v }), v) |
no test coverage detected