"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.snakeToCamel = snakeToCamel;
exports.snakeToCamelObject = snakeToCamelObject;
function snakeToCamel(str) {
    return str.replace(/_\w/g, (x) => {
        return x[1].toUpperCase();
    });
}
function snakeToCamelObject(obj) {
    if (!obj) {
        return obj;
    }
    return Object.keys(obj).reduce((acc, k) => {
        Object.assign(acc, { [snakeToCamel(k)]: obj[k] });
        return acc;
    }, {});
}
