"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeLastSegment = void 0;
const f_1 = require("../system/core/array/DropLast/f");
const f_2 = 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('/');
}
exports.removeLastSegment = removeLastSegment;
//# sourceMappingURL=removeLastSegment.js.map