(url: string)
| 74 | * ``` |
| 75 | */ |
| 76 | export function addTrailingSlash(url: string): string { |
| 77 | // Check if the URL already end with a slash |
| 78 | return url.at(-1) === '/' ? url : `${url}/`; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Joins URL parts into a single URL string. |
no outgoing calls
no test coverage detected