([first, ...rest]: [string, ...string[]])
| 145 | } |
| 146 | |
| 147 | function formatUrls([first, ...rest]: [string, ...string[]]): string { |
| 148 | if (rest.length === 0) { |
| 149 | return singleQuote(first); |
| 150 | } |
| 151 | return `[${[first, ...rest].map(singleQuote).join(', ')}]`; |
| 152 | } |
no test coverage detected