(value: string)
| 102 | } |
| 103 | |
| 104 | function getOrGenerateURL(value: string): string { |
| 105 | let id = store[value]; |
| 106 | if (!id) { |
| 107 | id = `URL${++urlIdx}`; |
| 108 | store[value] = id; |
| 109 | } |
| 110 | return id; |
| 111 | } |
| 112 | |
| 113 | findAndReplaceURL(removedObj); |
| 114 | return { cleanedObject: removedObj, urlStore: store }; |