"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.join = void 0;
const removeEndingSlash = (x) => x.endsWith('/') ? x.slice(0, x.length - 1) : x;
const ensureStartingSlash = (x) => x.startsWith('/') || x === '' ? x : `/${x}`;
exports.join = (...args) => args.reduce((acc, cur) => `${removeEndingSlash(acc)}${ensureStartingSlash(cur)}`, '');
