([first, ...rest]: [string, ...string[]])
| 139 | } |
| 140 | |
| 141 | function formatUrls([first, ...rest]: [string, ...string[]]): string { |
| 142 | if (rest.length === 0) { |
| 143 | return singleQuote(first); |
| 144 | } |
| 145 | return `[${[first, ...rest].map(singleQuote).join(', ')}]`; |
| 146 | } |
no test coverage detected