4 lines
100 B
TypeScript
4 lines
100 B
TypeScript
export function withoutTrailingSlash(url: string | undefined) {
|
|
return url?.replace(/\/$/, '');
|
|
}
|