UNPKG

alinea

Version:
16 lines (14 loc) 378 B
import "../../chunks/chunk-NZLE2WMY.js"; // src/core/util/Urls.ts function joinPaths(...paths) { return paths.filter(Boolean).map((part, i) => { let start = 0; let end = void 0; if (i < paths.length - 1 && part.endsWith("/")) end = -1; if (i > 0 && part.startsWith("/")) start = 1; return part.slice(start, end); }).join("/"); } export { joinPaths };