(nodeA: any, nodeB: any)
| 17 | } |
| 18 | |
| 19 | function addMissingKeys(nodeA: any, nodeB: any): any { |
| 20 | for (const key in nodeA) { |
| 21 | if (Object.prototype.hasOwnProperty.call(nodeA, key)) { |
| 22 | if (!Object.prototype.hasOwnProperty.call(nodeB, key)) { |
| 23 | nodeB[key] = nodeA[key]; |
| 24 | } else { |
| 25 | if (typeof nodeA[key] === "object") { |
| 26 | nodeB[key] = addMissingKeys(nodeA[key], nodeB[key]); |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | return nodeB; |
| 32 | } |
| 33 | |
| 34 | function removeUselessKeysToFile(base: string, output: string) { |
| 35 | const basePath = path.join(process.cwd(), base); |
no outgoing calls
no test coverage detected