download
raw
382 Bytes
'use strict';
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
*
* @returns {string} The combined URL
*/
export default function combineURLs(baseURL, relativeURL) {
return relativeURL
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
: baseURL;
}

Xet Storage Details

Size:
382 Bytes
·
Xet hash:
4cf21f00f5691dc769ca8a7442fa457f2e1a1383b5d1ccb816ab6890cfd32559

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.