refactoring

This commit is contained in:
Maren Süwer
2018-10-18 15:20:30 +02:00
parent 9ac5b3fe37
commit 9e5df56ecf
12 changed files with 45 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ export function withEndingSlash(url: string) {
return url + "/";
}
export function concat(base: string, ...parts: string) {
export function concat(base: string, ...parts: string[]) {
let url = base;
for ( let p of parts) {
url = withEndingSlash(url) + p;