(identicalPaths: string[], path: string)
| 85 | ) { |
| 86 | const legacyPaths = enableLegacyPaths(version); |
| 87 | function apply(identicalPaths: string[], path: string) { |
| 88 | const object = getDeep(plain, parsePath(path, legacyPaths)); |
| 89 | |
| 90 | identicalPaths |
| 91 | .map(path => parsePath(path, legacyPaths)) |
| 92 | .forEach(identicalObjectPath => { |
| 93 | plain = setDeep(plain, identicalObjectPath, () => object); |
| 94 | }); |
| 95 | } |
| 96 | |
| 97 | if (isArray(annotations)) { |
| 98 | const [root, other] = annotations; |