"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeLastSegment = removeLastSegment;
const f_1 = __importDefault(require("../system/core/array/DropLast/f"));
const f_2 = __importDefault(require("../system/f/string/Split/f"));
function removeLastSegment(path) {
    const { a } = (0, f_1.default)({ ab: (0, f_2.default)(path, '/'), n: 1 });
    return a.join('/');
}
//# sourceMappingURL=removeLastSegment.js.map