• Creates a URL by concatenating baseURL, relativeURL, queryStringParams

    Parameters

    Returns string

    combineURLs('a/', 'b'); // 'a/b'
    combineURLs('a/', '/b'); // 'a/b'
    combineURLs('/a', 'b'); // '/a/b'
    const queryParams: QueryParameter[] = [
    ['string', 'string1'],
    ['bool', true],
    ['number', 1],
    ['text', 'Are you sure?'],
    ];
    combineURLs('a/', 'b', queryParams); // 'a/b?string=string1&bool=true&number=1&text=Are%20you%20sure%3F'