"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toUnder = void 0;
function toUnder(camel) {
    let dash = camel.replace(/[A-Z]/g, (m) => '_' + m.toLowerCase());
    if (dash.substring(0, 1) == '_') {
        dash = dash.substring(1, dash.length);
    }
    return dash;
}
exports.toUnder = toUnder;
//# sourceMappingURL=misc.js.map