(root: any, p: (string | number)[])
| 66 | const path: (string | number)[] = []; |
| 67 | |
| 68 | const getByPath = (root: any, p: (string | number)[]) => |
| 69 | p.reduce((acc, k) => (acc == null ? acc : acc[k]), root); |
| 70 | |
| 71 | const wrap = (parentPath: (string | number)[], key: string | number) => { |
| 72 | return (...args: any[]) => { |