(a: string, b: string)
| 184 | } |
| 185 | |
| 186 | function joinUrls(a: string, b: string): string { |
| 187 | if (a.endsWith('/') && b.startsWith('/')) { |
| 188 | return a + b.slice(1); |
| 189 | } else if (!a.endsWith('/') && !b.startsWith('/')) { |
| 190 | return a + '/' + b; |
| 191 | } |
| 192 | return a + b; |
| 193 | } |
| 194 | |
| 195 | function withOrderedKeys<T extends {[key: string]: any}>(unorderedObj: T): T { |
| 196 | const orderedObj = {} as {[key: string]: any}; |
no outgoing calls
no test coverage detected
searching dependent graphs…